Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.Controls.LabelEx

  • Assembly: RT.Util, Version=1.0.0.9999, Culture=neutral, PublicKeyToken=null
  • Namespace: RT.Util.Controls
  • Show inherited types...
  • Show implemented interfaces...

Summary

Implements a label control that supports basic formatting of the displayed text. Text alignment and right-to-left text are not supported.

Constructors

Constructor.

Instance methods

Size
GetPreferredSize(Size constrainingSize)
  • Overrides: Control.GetPreferredSize(Size)
  • Implements: IArrangedElement.GetPreferredSize(Size)
Override; see base.
void
  • Implements: IButtonControl.PerformClick()
Pretends as if the user pressed Enter. Has no effect if there is no link that has keyboard focus.

Instance properties

bool
  • Overrides: Control.AutoSize
Set to true to make the label size itself to fit all the text.
stringGets or sets a string to use as the bullet point for bulleted lists ([...] in the mark-up).
int
  • Virtual
Specifies an amount by which all but the first line of each paragraph are indented.
LabelEx.IndentUnit
  • Virtual
Specifies the units in which LabelEx.HangingIndent is measured.
Color
  • Virtual
Color of text when a link is in the “active” state, i.e. when the mouse button or Space is held down.
Color
  • Virtual
Color of text in a link (can be overridden using a { ... } tag).
double
  • Virtual
Specifies the line spacing between paragraph as a multiple of the line height.
EggsMLParseExceptionContains information about a parse error that describes in what way the current value of LabelEx.Text is invalid EggsML, or null if it is valid.
boolGets or sets a value indicating whether the user can give the focus to this control using the TAB key. This property’s value automatically changes every time Text changes; it is set to true if there is a link in the text, false otherwise. To achieve deviant behaviour, set TabStop immediately after setting Text.
string
  • Overrides: Control.Text
Text displayed in the label. See remarks for EggsML supported. Setting this property also changes the value of the LabelEx.TabStop property depending on whether the text contains any links. To achieve deviant behaviour, set TabStop immediately after setting Text. (see also remarks)
ContentAlignmentGets or sets the alignment of text in the label. The default is TopLeft.
bool
  • Virtual
Enable/disable wrapping long lines on word boundaries.

Events

LinkEventHandlerOccurs when a link within the label is activated (via mouse click, Space or Enter).
LinkEventHandlerOccurs when a link within the label gets focussed by the keyboard.
LinkEventHandlerOccurs when a link within the label loses the keyboard focus.

Nested types

Contains values that specify the unit in which the value of the LabelEx.HangingIndent property is measured.