Class ColorScale
Represents the color scale.
Inherited Members
Namespace: FastReport.Map
Assembly: FastReport.dll
Syntax
public class ColorScale : ScaleBase
Constructors
ColorScale()
Initializes a new instance of the ColorScale class.
Declaration
public ColorScale()
Properties
Data
Gets or sets ColorRanges that must be displayed in this color scale.
Declaration
[Browsable(false)]
public ColorRanges Data { get; set; }
Property Value
Type | Description |
---|---|
ColorRanges |
Format
Gets or sets the format string used to format data values.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HideIfNoData
Gets or sets a value indicating whether the color scale must be hidden if there is no data in it.
Declaration
public bool HideIfNoData { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NoDataText
Gets or sets the text displayed in the color scale if there is no data in it.
Declaration
public string NoDataText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Assign(ScaleBase)
Copies the contents of another ScaleBase.
Declaration
public override void Assign(ScaleBase src)
Parameters
Type | Name | Description |
---|---|---|
ScaleBase | src | The ScaleBase instance to copy the contents from. |
Overrides
CalcSize()
Gets the size of the scale, in pixels.
Declaration
public override SizeF CalcSize()
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The SizeF structure containing the size of the object. |
Overrides
Draw(FRPaintEventArgs, MapObject)
Draws the object.
Declaration
public override void Draw(FRPaintEventArgs e, MapObject parent)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Draw parameters. |
MapObject | parent | Parent map object. |
Overrides
Serialize(FRWriter, String, ScaleBase)
Serializes the scale.
Declaration
public override void Serialize(FRWriter writer, string prefix, ScaleBase diff)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
System.String | prefix | Scale property name. |
ScaleBase | diff | Another ScaleBase to compare with. |
Overrides
Remarks
This method is for internal use only.