The members of System.Windows.Forms.Label are listed below.
See Also: Inherited members from System.Windows.Forms.Control
Label() |
Initializes a new instance of the System.Windows.Forms.Label class. |
AutoEllipsis | bool.
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 | AutoSize | bool.
Gets or sets a value indicating whether the control is automatically resized to display its entire contents. |
override | BackgroundImage | System.Drawing.Image.
Gets or sets the image rendered on the background of the control. |
override | BackgroundImageLayout | ImageLayout.
This property is not relevant for this class. |
BorderStyle | BorderStyle.
Gets or sets the border style for the control. | |
FlatStyle | FlatStyle.
Gets or sets the flat style appearance of the label control. | |
Image | System.Drawing.Image.
Gets or sets the image that is displayed on a System.Windows.Forms.Label. | |
ImageAlign | System.Drawing.ContentAlignment.
Gets or sets the alignment of an image that is displayed in the control. | |
ImageIndex | int.
Gets or sets the index value of the image displayed on the System.Windows.Forms.Label. | |
ImageKey | string.
Gets or sets the key accessor for the image in the Label.ImageList. | |
ImageList | ImageList.
Gets or sets the System.Windows.Forms.ImageList that contains the images to display in the System.Windows.Forms.Label control. | |
ImeMode | ImeMode.
Gets or sets the Input Method Editor (IME) mode supported by this control. | |
[read-only] | PreferredHeight | int.
Gets the preferred height of the control. |
[read-only] | PreferredWidth | int.
Gets the preferred width of the control. |
TabStop | bool.
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 | Text | string.
Gets or sets the text associated with this control. |
TextAlign | System.Drawing.ContentAlignment.
Gets or sets the alignment of text in the label. | |
UseCompatibleTextRendering | bool.
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. | |
UseMnemonic | bool.
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. |
[read-only] override | CreateParams | CreateParams.
Gets the required creation parameters when the control handle is created. |
[read-only] override | DefaultImeMode | ImeMode.
Gets the default Input Method Editor (IME) mode supported by this control. |
[read-only] override | DefaultMargin | Padding.
Gets the space, in pixels, that is specified by default between controls. |
[read-only] override | DefaultSize | System.Drawing.Size.
Gets the default size of the control. |
RenderTransparent | bool.
Indicates whether the container control background is rendered on the System.Windows.Forms.Label. |
override | GetPreferredSize(System.Drawing.Size)
| |
override | ToString()
|
AutoSizeChanged |
Occurs when the value of the Label.AutoSize property changes. | |
BackgroundImageChanged |
Occurs when the Label.BackgroundImage property changes. | |
BackgroundImageLayoutChanged |
Occurs when the Label.BackgroundImageLayout property changes. | |
ImeModeChanged |
Occurs when the Label.ImeMode property changes. | |
KeyDown |
Occurs when the user presses a key while the label has focus. | |
KeyPress |
Occurs when the user presses a key while the label has focus. | |
KeyUp |
Occurs when the user releases a key while the label has focus. | |
TabStopChanged |
Occurs when the Label.TabStop property changes. | |
TextAlignChanged |
Occurs when the value of the Label.TextAlign property has changed. |