Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Label.SetBoundsCore Method

Sets the specified bounds of the label.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

protected override void SetBoundsCore (
	int x,
	int y,
	int width,
	int height,
	BoundsSpecified specified
)
protected void SetBoundsCore (
	int x, 
	int y, 
	int width, 
	int height, 
	BoundsSpecified specified
)
protected override function SetBoundsCore (
	x : int, 
	y : int, 
	width : int, 
	height : int, 
	specified : BoundsSpecified
)
Not applicable.

Parameters

x

The new Left property value of the control.

y

The new Top property value of the control.

width

The new Width property value of the control.

height

The new Height property value of the control.

specified

A bitwise combination of the BoundsSpecified values. For any parameter not specified, the current value will be used.

If you set the SetBoundsCore property to true, the label will be sized to fit the contents of the label. If you set AutoSize to false after calling the SetBoundsCore method, the label will receive the dimensions you specified in the call.

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft