TextBoxBase.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 메서드

정의

TextBoxBase 컨트롤의 지정된 범위를 설정합니다.

protected:
 override void SetBoundsCore(int x, int y, int width, int height, System::Windows::Forms::BoundsSpecified specified);
protected override void SetBoundsCore (int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified);
override this.SetBoundsCore : int * int * int * int * System.Windows.Forms.BoundsSpecified -> unit
Protected Overrides Sub SetBoundsCore (x As Integer, y As Integer, width As Integer, height As Integer, specified As BoundsSpecified)

매개 변수

x
Int32

컨트롤의 새 Left 속성 값입니다.

y
Int32

컨트롤의 새 Top 속성 값입니다.

width
Int32

컨트롤의 새 Width 속성 값입니다.

height
Int32

사용되지 않습니다.

specified
BoundsSpecified

BoundsSpecified 값의 비트 조합입니다.

설명

컨트롤은 TextBoxBase PreferredHeight 속성을 사용 하 여 속성이 인 경우 경계를 AutoSize true 설정 합니다 Multiline false.

일반적으로 매개 변수에 포함되지 않은 경계에 specified 해당하는 매개 변수는 현재 값으로 전달됩니다. 예를 들어 컨트롤의 Height현재 인스턴스에 X 대한 참조를 사용하여 속성의 Location 속성 Width또는 Y 속성을 전달할 수 있습니다. 그러나 전달된 모든 값은 적용되고 컨트롤에 적용됩니다.

합니다 specified 매개 변수는 컨트롤의 요소를 나타냅니다 Bounds 애플리케이션에서 변경 합니다. 예를 들어 컨트롤을 Size 변경하는 경우 매개 변수 값은 .의 BoundsSpecified값입니다Size.specified 그러나 설정 specified 되는 속성에 대한 응답으로 Dock 조정되는 경우 Size 매개 변수 값은 .의 BoundsSpecified값입니다None.

상속자 참고

파생 클래스에서 재정의하는 SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 경우 기본 클래스의 메서드를 호출하여 컨트롤의 SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 경계를 강제로 변경해야 합니다. 파생 클래스는 메서드에 크기 제한을 SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 추가할 수 있습니다.

적용 대상