Label Class

Displays a text string within a container in a form. The text will wrap within the specified width and height of the control.  Clipping will occur if the text wraps outside the specified width and height boundaries.

Namespace: elsystem.windows.forms

Properties

  Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property AutoEllipsis bool True enables the automatic use of ellipsis (...) for text that extends beyond the width of the Label control.
Public property FlatStyle enum Gets or sets the flat style appearance of the Label.  See FlatStyle for a list of possible values.
Public property TextAlign enum Gets or sets the alignment of text in the label.  See ContentAlignment for a list of possible values.
Public property UseCompatibleTextRendering bool True indicates that text rendering should be compatible with previous release of Windows Forms.
Methods
  Name Description
Public property Create () Initializes a new instance of the Label class.  
Public property Create (text,width,height) Initializes a new instance of the Label class.   Parameters include the Text to be displayed followed the Width and Height of the control.
Public property RemoveGradient() Removes the gradient background.
Public property SetLinearGradient(mode, startColor, endColor) Creates a linear gradient label background. See LinearGradientMode and Color for lists of possible values.
Public property SetRadialGradient(startColor, endColor) Creates a radial gradient label background. See Color for a list of possible values.