Class LabelControl
Represents a standard Windows label. Wraps the System.Windows.Forms.Label control.
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class LabelControl : DialogControl, IDisposable, IFRSerializable, IHasEditor
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
GetSelectionPoints()
Gets the object's selection points.
Declaration
protected override SelectionPoint[] GetSelectionPoints()
Returns
Type | Description |
---|---|
SelectionPoint[] | Array of SelectionPoint objects. |
Overrides
Remarks
Selection point is a small square displayed at the object's sides when object is selected in the designer. You can drag this square by the mouse to change the object's size. For example, the TextObject has eight selection points to change its width and height by the mouse.
If you are developing a new component for FastReport, you may override this method if your object has non-standard set of selection points. For example, if an object has something like "AutoSize" property, it would be good to disable all selection points if that property is true, to disable resizing of the object by the mouse.
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |