通过


Label.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 方法

定义

设置标签的指定边界。

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

控件的新 Height 属性值。

specified
BoundsSpecified

值的按位组合 BoundsSpecified 。 对于未指定的任何参数,将使用当前值。

注解

如果将属性设置为 AutoSize 该属性 true,标签的大小将适合标签的内容。 如果在调用SetBoundsCore方法后设置为AutoSizefalse,标签将接收在调用中指定的维度。

适用于