ScrollableControl.SetDisplayRectLocation(Int32, Int32) Methode

Definitie

Hiermee plaatst u het weergavevenster op de opgegeven waarde.

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)

Parameters

x
Int32

De horizontale verschuiving waarop de ScrollableControl.

y
Int32

De verticale verschuiving waarop de ScrollableControl.

Opmerkingen

Als de AutoScroll eigenschap is ingesteld op true, is de DisplayRectangle eigenschap de virtuele grootte en positie van het clientgebied van het ScrollableControl. Roep de SetDisplayRectLocation methode aan om door de ScrollableControl opgegeven positie te schuiven.

Notities voor bellers

SetDisplayRectLocation(Int32, Int32) werkt de positie van de schuifbalken niet bij. Als u de schuifbalken wilt bijwerken, roept u de AdjustFormScrollbars(Boolean) methode aan.

Van toepassing op

Zie ook