다음을 통해 공유


ScrollableControl.SetDisplayRectLocation 메서드

표시 창의 위치를 지정된 값으로 설정합니다.

네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(system.windows.forms.dll)

구문

‘선언
Protected Sub SetDisplayRectLocation ( _
    x As Integer, _
    y As Integer _
)
‘사용 방법
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
)

매개 변수

  • y
    ScrollableControl의 위치를 나타내는 세로 오프셋입니다.

설명

AutoScroll 속성이 true로 설정되어 있으면 DisplayRectangle 속성은 ScrollableControl의 클라이언트 영역에 표시되는 실제 크기 및 위치를 나타냅니다. ScrollableControl을 지정된 위치로 스크롤하려면 SetDisplayRectLocation 메서드를 호출합니다.

호출자 참고 사항 SetDisplayRectLocation은 스크롤 막대의 위치를 업데이트하지 않습니다. 스크롤 막대를 업데이트하려면 AdjustFormScrollbars 메서드를 호출하십시오.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

ScrollableControl 클래스
ScrollableControl 멤버
System.Windows.Forms 네임스페이스
DisplayRectangle
ScrollControlIntoView
Scroll