Class ScaleBase
The base class for scale-type controls such as DistanceScale and ColorScale.
Namespace: FastReport.Map
Assembly: FastReport.dll
Syntax
[TypeConverter(typeof(FRExpandableObjectConverter))]
public class ScaleBase
  Constructors
ScaleBase()
Initializes a new instance of the ScaleBase class.
Declaration
public ScaleBase()
  Properties
Border
Gets or sets the border.
Declaration
public Border Border { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Border | 
BorderColor
Gets or sets the border color.
Declaration
public Color BorderColor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | 
Dock
Gets or sets the location of the scale.
Declaration
public ScaleDock Dock { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ScaleDock | 
Fill
Gets or sets the fill.
Declaration
public FillBase Fill { get; set; }
  Property Value
| Type | Description | 
|---|---|
| FillBase | 
Font
Gets or sets the font.
Declaration
public Font Font { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Font | 
TextColor
Gets or sets the text color.
Declaration
public Color TextColor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | 
TitleColor
Gets or sets the title text color.
Declaration
public Color TitleColor { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | 
TitleFont
Gets or sets the title font.
Declaration
public Font TitleFont { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Drawing.Font | 
TitleText
Gets or sets the title text.
Declaration
public string TitleText { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Visible
Gets or sets the visibility of a scale.
Declaration
public bool Visible { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Methods
Assign(ScaleBase)
Copies the contents of another ScaleBase.
Declaration
public virtual void Assign(ScaleBase src)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ScaleBase | src | The ScaleBase instance to copy the contents from.  | 
      
CalcSize()
Gets the size of the scale, in pixels.
Declaration
public virtual SizeF CalcSize()
  Returns
| Type | Description | 
|---|---|
| System.Drawing.SizeF | The SizeF structure containing the size of the object.  | 
      
Draw(FRPaintEventArgs, MapObject)
Draws the object.
Declaration
public virtual void Draw(FRPaintEventArgs e, MapObject parent)
  Parameters
| Type | Name | Description | 
|---|---|---|
| FRPaintEventArgs | e | Draw parameters.  | 
      
| MapObject | parent | Parent map object.  | 
      
Serialize(FRWriter, String, ScaleBase)
Serializes the scale.
Declaration
public virtual 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.  | 
      
Remarks
This method is for internal use only.