Label.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置标签的指定边界。
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)
参数
- specified
- BoundsSpecified
值的按位组合 BoundsSpecified 。 对于未指定的任何参数,将使用当前值。
注解
如果将属性设置为 AutoSize 该属性 true,标签的大小将适合标签的内容。 如果在调用SetBoundsCore方法后设置为AutoSizefalse,标签将接收在调用中指定的维度。