System.Windows.Forms.Label: Property Members

The properties 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 Properties

AutoEllipsisbool.

Gets or sets a value indicating whether the ellipsis character (...) appears at the right edge of the System.Windows.Forms.Label, denoting that the System.Windows.Forms.Label text extends beyond the specified length of the System.Windows.Forms.Label.

override
AutoSizebool.

Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the image rendered on the background of the control.

override
BackgroundImageLayoutImageLayout.

This property is not relevant for this class.

BorderStyleBorderStyle.

Gets or sets the border style for the control.

FlatStyleFlatStyle.

Gets or sets the flat style appearance of the label control.

ImageSystem.Drawing.Image.

Gets or sets the image that is displayed on a System.Windows.Forms.Label.

ImageAlignSystem.Drawing.ContentAlignment.

Gets or sets the alignment of an image that is displayed in the control.

ImageIndexint.

Gets or sets the index value of the image displayed on the System.Windows.Forms.Label.

ImageKeystring.

Gets or sets the key accessor for the image in the Label.ImageList.

ImageListImageList.

Gets or sets the System.Windows.Forms.ImageList that contains the images to display in the System.Windows.Forms.Label control.

ImeModeImeMode.

Gets or sets the Input Method Editor (IME) mode supported by this control.

[read-only]
PreferredHeightint.

Gets the preferred height of the control.

[read-only]
PreferredWidthint.

Gets the preferred width of the control.

TabStopbool.

Gets or sets a value indicating whether the user can tab to the System.Windows.Forms.Label. This property is not used by this class.

override
Textstring.

Gets or sets the text associated with this control.

TextAlignSystem.Drawing.ContentAlignment.

Gets or sets the alignment of text in the label.

UseCompatibleTextRenderingbool.

Gets or sets a value that determines whether to use the System.Drawing.Graphics class (ndptecgdiplus) or the System.Windows.Forms.TextRenderer class (ndptecgdi) to render text.

UseMnemonicbool.

Gets or sets a value indicating whether the control interprets an ampersand character (&) in the control's Control.Text property to be an access key prefix character.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

[read-only]
override
DefaultImeModeImeMode.

Gets the default Input Method Editor (IME) mode supported by this control.

[read-only]
override
DefaultMarginPadding.

Gets the space, in pixels, that is specified by default between controls.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.

RenderTransparentbool.

Indicates whether the container control background is rendered on the System.Windows.Forms.Label.