ScrollableControl.SetDisplayRectLocation-Methode
Positioniert das Anzeigefenster anhand des angegebenen Werts.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Protected Sub SetDisplayRectLocation ( _
x As Integer, _
y As Integer _
)
'Usage
Dim x As Integer
Dim y As Integer
Me.SetDisplayRectLocation(x, y)
protected void SetDisplayRectLocation (
int x,
int y
)
protected:
void SetDisplayRectLocation (
int x,
int y
)
protected void SetDisplayRectLocation (
int x,
int y
)
protected function SetDisplayRectLocation (
x : int,
y : int
)
Parameter
- x
Der horizontale Offset, an dem das ScrollableControl positioniert werden soll.
- y
Der vertikale Offset, an dem das ScrollableControl positioniert werden soll.
Hinweise
Wenn die AutoScroll-Eigenschaft auf true festgelegt wurde, besitzt die DisplayRectangle-Eigenschaft die für den Clientbereich des ScrollableControl angezeigte virtuelle Größe und Position. Rufen Sie die SetDisplayRectLocation-Methode auf, um einen Bildlauf zur angegebenen Position im ScrollableControl durchzuführen.
Hinweise für Aufrufer Mit SetDisplayRectLocation wird die Position der Bildlaufleisten nicht aktualisiert. Um die Bildlaufleisten zu aktualisieren, rufen Sie die AdjustFormScrollbars-Methode auf.
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ScrollableControl-Klasse
ScrollableControl-Member
System.Windows.Forms-Namespace
DisplayRectangle
ScrollControlIntoView
Scroll