Class GaugeLabel
Represents a label of a gauge.
Namespace: FastReport.Gauge
Assembly: FastReport.OpenSource.dll
Syntax
public class GaugeLabel : Component
Constructors
GaugeLabel(GaugeObject)
Initializes a new instance of the GaugeLabel class.
Declaration
public GaugeLabel(GaugeObject parent)
Parameters
Type | Name | Description |
---|---|---|
GaugeObject | parent |
GaugeLabel(GaugeObject, String, Font, Color)
Initializes a new instance of the GaugeLabel class.
Declaration
public GaugeLabel(GaugeObject parent, string text, Font font, Color color)
Parameters
Type | Name | Description |
---|---|---|
GaugeObject | parent | Label parent |
System.String | text | Label text |
Font | font | Label font |
Color | color | Label color |
Properties
Color
Gets or sets the label color
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Font
Gets or sets the label font
Declaration
public Font Font { get; set; }
Property Value
Type | Description |
---|---|
Font |
Parent
Gets or sets the label parent
Declaration
public GaugeObject Parent { get; set; }
Property Value
Type | Description |
---|---|
GaugeObject |
Text
Gets or sets the label text
Declaration
public virtual string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Assign(GaugeLabel)
Copies the contents of another GaugeLabel.
Declaration
public virtual void Assign(GaugeLabel src)
Parameters
Type | Name | Description |
---|---|---|
GaugeLabel | src | The GaugeLabel instance to copy the contents from. |
Draw(FRPaintEventArgs)
Draws the gauge label.
Declaration
public virtual void Draw(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Draw event arguments. |
Serialize(FRWriter, String, GaugeLabel)
Serializes the gauge label.
Declaration
public virtual void Serialize(FRWriter writer, string prefix, GaugeLabel diff)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
System.String | prefix | Gauge label property name. |
GaugeLabel | diff | Another GaugeLabel to compare with. |
Remarks
This method is for internal use only.