LabelWrapper
Wisej.Web.LabelWrapper
Last updated
Was this helpful?
Wisej.Web.LabelWrapper
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.2.0.0)
Adds a label to the control it is attached to.
Controls that expose a "Label" property, can display a label in the position defined by . The label can automatically grow to fill the control's width or height (depending on the value of ) using either an absolute , a percentage, or the size that best fits the label. Size modes (values of :
The size of the label is calculated automatically based in the font and the text. The and are applied when greater than 0.
The size of the label is set by the value of the property in pixels. The and are applied when greater than 0.
The size of the label is proportional to the size of the control according to the percentage set in the property. The and are applied when greater than 0.
This class implements the interface. To listen to property changes, simply attach to the event. Pointer events (, , etc.) occurring on the label associated with a control can be detected by checking if property contains the value "label". There are several additional properties and styles defined in the theme that can affect how the label behaves in the different positions and states set under the appearance key "label-wrapper".
: Returns or sets whether the label can contain HTML code.
: Returns or sets whether to append the ... symbol when the text doesn't fit the label.
: Returns or sets the font of the label.
: Returns or sets the color of the label. This property can be defined in the theme.
: Returns or sets the maximum size of the label in pixels.
When is or , refers to the maximum width of the label. When is or , refers to the maximum height of the label. Otherwise it's ignored.
: Returns or sets the minimum size of the label in pixels.
When is or , refers to the minimum width of the label. When is or , refers to the minimum height of the label. Otherwise it's ignored.
: Returns or sets the additional padding around the label. This property can be defined in the theme.
: Returns or sets the position of the label in relation to the associated editor control.
: Returns or sets the size of the label in pixels or percentage, depending on the value of .
When is , the value of is in pixels, when it's the value is the percentage of the total width or hight. Otherwise it is ignored. When is or , refers to the width of the label. When is or , refers to the height of the label. Otherwise it's ignored.
: Returns or sets how to determine the size of the label.
: Returns or sets the text to display in the label. Set to null or empty to disable the label altogether.
: Returns or sets the text alignment of the label.
: Return or sets whether to interpret the first character prefixed by & as the accelerator key.