Class LabelControl
Represents a standard Windows label. Wraps the System.Windows.Forms.Label control.
Implements
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class LabelControl : DialogControl, IDisposable, IFRSerializable
  Constructors
LabelControl()
Initializes a new instance of the LabelControl class with default settings.
Declaration
public LabelControl()
  Properties
AutoSize
Gets or sets a value indicating whether the control is automatically resized to display its entire contents. Wraps the System.Windows.Forms.Label.AutoSize property.
Declaration
public bool AutoSize { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Label
Gets an internal Label.
Declaration
[Browsable(false)]
public Label Label { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Forms.Label | 
TextAlign
Gets or sets the alignment of text in the label. Wraps the System.Windows.Forms.Label.TextAlign property.
Declaration
public ContentAlignment TextAlign { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.ContentAlignment | 
Methods
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| FRWriter | writer | Writer object.  | 
      
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
 - saving the report to the designer's undo buffer;
 - assigning the object to another object using the Assign(Base) or AssignAll methods;
 - saving the object to the designer's clipboard;
 - saving the object to the preview (when run a report).