Label
Wisej.Web.Label
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents a label control.
Constructors
Label()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Initializes a new instance of the Label class.
Properties
AllowHtml
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Boolean: Returns or sets a value indicating that the control can display HTML in the Text property. (Default: False
)
Newlines (CRLF) are converted to <BR/> when AllowHtml is false, or when AllowHtml is true and the text doesn't contain any HTML.
AutoEllipsis
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Boolean: Returns or sets whether the ellipsis character (...) appears at the right edge of the label, denoting that the text extends beyond the size of the label. (Default: False
)
AutoSize
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Boolean: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False
)
BorderStyle
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
BorderStyle: Indicates the border style for the control. (Default: None
)
CharacterCasing
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
CharacterCasing: Returns or sets the case of the text to display to the user. (Default: Normal
)
Command
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
ICommand: Returns or sets the ICommand implementation to invoke. (Default: null
)
DialogResult
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
DialogResult: Returns or sets a value that is returned to the parent form when the button is clicked. (Default: None
)
EnableNativeContextMenu
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Boolean: Enables or disables the browser's context menu. (Default: False
)
Image
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Image: Returns or sets the image that is displayed on a Label.
ImageAlign
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
ContentAlignment: Returns or sets the alignment of an image that is displayed in the control. (Default: MiddleCenter
)
ImageIndex
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Int32: Returns or sets the image list index value of the image displayed on the label control. (Default: -1
)
Throws:
ArgumentOutOfRangeException The specified index is less than -1.
ImageKey
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
String: Returns or sets the key accessor for the image in the ImageList. (Default: ""
)
ImageList
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
ImageList: Returns or sets the ImageList that contains the images to display in the Label control. (Default: null
)
ImageSource
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
String: Returns or sets the theme name or URL for the image to display in the Label.
Text
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
String: Returns or sets the text associated with this control. (Default: ""
)
Newlines (CRLF) are converted to <BR/> when AllowHtml is false, or when AllowHtml is true and the text doesn't contain any HTML.
TextAlign
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
ContentAlignment: Returns or sets the alignment of text in the label. (Default: TopLeft
)
UseMnemonic
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Boolean: Returns or sets whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Default: True
)
Methods
PerformClick()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
Generates a Click event for the LinkLabel control.
Events
CommandChanged
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F3811934619-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FaN9qL9rX9v301dsI6CfD%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3Dbc63f9cf-3241-48ac-8cb4-46d1df1d13df&width=300&dpr=4&quality=100&sign=3f055c39&sv=1)
EventHandler Fired when the Command property value changes.
Inherited By
Name | Description |
---|---|
Represents an hyper-link control. |
Implements
Name | Description |
---|---|
Bindable components implement this interface. | |
Allows a control to act like a button on a Form. | |
Defines an object that can invoke a Command. | |
Controls that support drag & drop operations implement this interface. | |
Exposes a common api implemented by components that can collect errors in relation to a Control. | |
Provides access to common image properties across the controls that implement this interface. | |
All wisej components implement this interface. | |
All wisej controls derived from the Control class must implement this interface. | |
Allows an object to serialize itself. |
Last updated