System.Windows.Forms.Label: Method Members

The methods of System.Windows.Forms.Label are listed below. For a list of all members, see the Label Members list.

See Also: Inherited members from System.Windows.Forms.Control

Public Methods

override
GetPreferredSize(System.Drawing.Size) : System.Drawing.Size

Retrieves the size of a rectangular area into which a control can be fitted.

override
ToString() : string

Returns a string that represents the current System.Windows.Forms.Label.

Protected Methods

CalcImageRenderBounds(System.Drawing.Image, System.Drawing.Rectangle, System.Drawing.ContentAlignment) : System.Drawing.Rectangle

Determines the size and location of an image drawn within the System.Windows.Forms.Label control based on the alignment of the control.

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.Label and optionally releases the managed resources.

DrawImage(System.Drawing.Graphics, System.Drawing.Image, System.Drawing.Rectangle, System.Drawing.ContentAlignment)

Draws an System.Drawing.Image within the specified bounds.

OnAutoSizeChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnEnabledChanged(EventArgs)

Raises the Control.EnabledChanged event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

override
OnMouseEnter(EventArgs)

Raises the Control.MouseEnter event.

override
OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

override
OnPaddingChanged(EventArgs)

Raises the Control.PaddingChanged event.

override
OnPaint(PaintEventArgs)

Raises the Control.Paint event.

override
OnParentChanged(EventArgs)

Raises the Control.ParentChanged event.

override
OnRightToLeftChanged(EventArgs)

Raises the Control.RightToLeftChanged event.

OnTextAlignChanged(EventArgs)

Raises the Label.TextAlignChanged event.

override
OnTextChanged(EventArgs)

Raises the Control.TextChanged event.

override
OnVisibleChanged(EventArgs)

Raises the Control.VisibleChanged event.

override
ProcessMnemonic(char) : bool

Processes a mnemonic character.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)

Sets the specified bounds of the label.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.