Label
Wisej.Web.Label
Last updated
Was this helpful?
Wisej.Web.Label
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a label control.
Initializes a new instance of the class.
Initializes a new instance of the class.
text
Initial text.
Initializes a new instance of the class.
text
Initial text.
location
Initial location.
size
Initial size.
Throws:
When self sizing is active (default for standard containers) an auto sizing label will always grow to the right side, even when anchored right, preserving it's left position. This is the default behavior in WinForms applications.
Represents an hyper-link control.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
Provides access to common image properties across the controls that implement this interface.
All wisej components implement this interface.
Allows an object to serialize itself.
: 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 is false, or when is true and the text doesn't contain any HTML.
: Returns or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Default: Top, Left
)
: 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
)
: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False
)
Since 3.5.6 Auto sizing behavior in the Label control is slightly different from other controls. When the label is a child of a standard container (i.e. Panel, Form, Page, GroupBox) and it's anchored to the right, auto sizing grows or shrinks the label's width preserving the left position. When the label is a child of a container with a custom (i.e. FlexLayoutPanel, FlowLayoutPanel, TableLayoutPanel) the auto sizing behavior is the same as all other controls. You can change the default behavior using the AppContext switch "LabelSelfSize". See to learn how to set the switch. In code, you can set it in a static Program constructor:
: Returns or sets whether a tooltip is displayed when the text extends beyond the size of the label. (Default: False
)
The auto tooltip is set on the browser using the attribute managed by the browser, does not use the themed tooltip managed by Wisej.NET.
: Indicates the border style for the control. (Default: None
)
: Returns or sets the case of the text to display to the user. (Default: Normal
)
: Returns or sets the implementation to invoke. (Default: null
)
: Returns or sets a value that is returned to the parent form when the button is clicked. (Default: None
)
: Returns or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Default: None
)
: Enables or disables the browser's context menu. (Default: False
)
: Returns or sets the image that is displayed on a .
: Returns or sets the alignment of an image that is displayed in the control. (Default: MiddleCenter
)
: Returns or sets the image list index value of the image displayed on the label control. (Default: -1
)
The specified index is less than -1.
: Returns or sets the key accessor for the image in the . (Default: ""
)
: Returns or sets the that contains the images to display in the control. (Default: null
)
: Returns or sets the theme name or URL for the image to display in the .
: EXPERIMENTAL: Return or sets whether the label resize itself when is true and it's in a container using the default layout engine: i.e.: Panel, Form, Page, GroupBox, UserControl. Since 3.5.6 (Default: True
)
: EXPERIMENTAL: Default value for the property. Since 3.5.6
The default is true. You can set the value by code or using switches: AppContext.SetSwitch("LabelSelfSize", false);
: Returns or sets the text associated with this control. (Default: ""
)
Newlines (CRLF) are converted to <BR/> when is false, or when is true and the text doesn't contain any HTML.
: Returns or sets the alignment of text in the label. (Default: TopLeft
)
: Returns or sets whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Default: True
)
Generates a event for the control.
Fired when the property value changes.
Allows a control to act like a button on a .
Defines an object that can invoke a .
Exposes a common api implemented by components that can collect errors in relation to a .
All wisej controls derived from the class must implement this interface.