ScrollableControl.SetDisplayRectLocation(Int32, Int32) Méthode
Définition
Positionne la fenêtre d'affichage à la valeur spécifiée.Positions the display window to the specified value.
protected:
void SetDisplayRectLocation(int x, int y);
protected void SetDisplayRectLocation (int x, int y);
member this.SetDisplayRectLocation : int * int -> unit
Protected Sub SetDisplayRectLocation (x As Integer, y As Integer)
Paramètres
- x
- Int32
L'offset horizontal auquel positionner ScrollableControl.The horizontal offset at which to position the ScrollableControl.
- y
- Int32
L'offset vertical auquel positionner ScrollableControl.The vertical offset at which to position the ScrollableControl.
Remarques
Si la AutoScroll propriété a la valeur true
, la DisplayRectangle propriété correspond à la taille virtuelle et à la position de la zone cliente du ScrollableControl .If the AutoScroll property is set to true
, the DisplayRectangle property is the virtual size and position displayed client area of the ScrollableControl. Appelez la SetDisplayRectLocation méthode pour faire défiler jusqu' ScrollableControl à la position spécifiée.Call the SetDisplayRectLocation method to scroll through the ScrollableControl to the specified position.