Show / Hide Table of Contents

Class GaugeObject

Represents a gauge object.

Inheritance
System.Object
Base
ComponentBase
ReportComponentBase
GaugeObject
LinearGauge
RadialGauge
SimpleGauge
Implements
IFRSerializable
System.ICloneable
Inherited Members
ReportComponentBase.BeforePrint
ReportComponentBase.AfterPrint
ReportComponentBase.AfterData
ReportComponentBase.Click
ReportComponentBase.Exportable
ReportComponentBase.Border
ReportComponentBase.Fill
ReportComponentBase.FillColor
ReportComponentBase.Bookmark
ReportComponentBase.Hyperlink
ReportComponentBase.CanGrow
ReportComponentBase.CanShrink
ReportComponentBase.GrowToBottom
ReportComponentBase.ShiftMode
ReportComponentBase.Style
ReportComponentBase.EvenStyle
ReportComponentBase.HoverStyle
ReportComponentBase.EvenStylePriority
ReportComponentBase.PrintOn
ReportComponentBase.BeforePrintEvent
ReportComponentBase.AfterPrintEvent
ReportComponentBase.AfterDataEvent
ReportComponentBase.ClickEvent
ReportComponentBase.FlagSimpleBorder
ReportComponentBase.FlagUseBorder
ReportComponentBase.FlagUseFill
ReportComponentBase.FlagPreviewVisible
ReportComponentBase.FlagSerializeStyle
ReportComponentBase.FlagProvidesHyperlinkValue
ReportComponentBase.Cursor
ReportComponentBase.MouseMoveEvent
ReportComponentBase.MouseUpEvent
ReportComponentBase.MouseDownEvent
ReportComponentBase.MouseEnterEvent
ReportComponentBase.MouseLeaveEvent
ReportComponentBase.ApplyStyle(Style)
ReportComponentBase.SaveStyle()
ReportComponentBase.RestoreStyle()
ReportComponentBase.DrawBackground(FRPaintEventArgs)
ReportComponentBase.IsVisible(FRPaintEventArgs)
ReportComponentBase.Deserialize(FRReader)
ReportComponentBase.OnClick(EventArgs)
ReportComponentBase.OnAfterLoad()
ReportComponentBase.HasClickListeners()
ReportComponentBase.InitializeComponent()
ReportComponentBase.FinalizeComponent()
ReportComponentBase.SaveState()
ReportComponentBase.RestoreState()
ReportComponentBase.CalcHeight()
ReportComponentBase.OnBeforePrint(EventArgs)
ReportComponentBase.OnAfterPrint(EventArgs)
ReportComponentBase.OnAfterData(EventArgs)
ComponentBase.AbsBottom
ComponentBase.AbsBounds
ComponentBase.AbsLeft
ComponentBase.AbsRight
ComponentBase.AbsTop
ComponentBase.Anchor
ComponentBase.Bottom
ComponentBase.Bounds
ComponentBase.ClientSize
ComponentBase.Dock
ComponentBase.GroupIndex
ComponentBase.Height
ComponentBase.Left
ComponentBase.Right
ComponentBase.Tag
ComponentBase.Top
ComponentBase.Visible
ComponentBase.Printable
ComponentBase.Width
Base.Name
Base.Restrictions
Base.Flags
Base.Parent
Base.BaseName
Base.ClassName
Base.Report
Base.Page
Base.ChildObjects
Base.AllObjects
Base.ZOrder
Base.IsAncestor
Base.IsDesigning
Base.IsPrinting
Base.IsRunning
Base.OriginalComponent
Base.SetProp(Base, Base)
Base.FloatDiff(Single, Single)
Base.DeserializeSubItems(FRReader)
Base.ExtractDefaultMacros(String)
Base.Dispose(Boolean)
Base.SetFlags(Flags, Boolean)
Base.SetReport(Report)
Base.SetName(String)
Base.SetParent(Base)
Base.SetParentCore(Base)
Base.FindObject(String)
Base.CreateUniqueName()
Base.Clear()
Base.BaseAssign(Base)
Base.AssignAll(Base)
Base.HasParent(Base)
Base.HasFlag(Flags)
Base.HasRestriction(Restrictions)
Base.InvokeEvent(String, Object)
Base.GetCustomScript()
Base.ExtractMacros()
Base.IsHaveToConvert(Object)
Base.GetConvertedObjects()
Base.ForEachAllConvectedObjects(Object)
Namespace: FastReport.Gauge
Assembly: FastReport.OpenSource.dll
Syntax
public class GaugeObject : ReportComponentBase, IFRSerializable, ICloneable

Constructors

GaugeObject()

Initializes a new instance of the GaugeObject class.

Declaration
public GaugeObject()

GaugeObject(Double, Double, Double)

Initializes a new instance of the GaugeObject class.

Declaration
public GaugeObject(double minimum, double maximum, double value)
Parameters
Type Name Description
System.Double minimum

Minimum value of gauge.

System.Double maximum

Maximum value of gauge.

System.Double value

Current value of gauge.

GaugeObject(Double, Double, Double, GaugeScale, GaugePointer)

Initializes a new instance of the GaugeObject class.

Declaration
public GaugeObject(double minimum, double maximum, double value, GaugeScale scale, GaugePointer pointer)
Parameters
Type Name Description
System.Double minimum

Minimum value of gauge.

System.Double maximum

Maximum value of gauge.

System.Double value

Current value of gauge.

GaugeScale scale

Scale of gauge.

GaugePointer pointer

Pointer of gauge.

Properties

Expression

Gets or sets an expression that determines the value of gauge object.

Declaration
public string Expression { get; set; }
Property Value
Type Description
System.String

Label

Gets or sets gauge label.

Declaration
public virtual GaugeLabel Label { get; set; }
Property Value
Type Description
GaugeLabel

Maximum

Gets or sets the maximal value of gauge.

Declaration
public double Maximum { get; set; }
Property Value
Type Description
System.Double

Minimum

Gets or sets the minimal value of gauge.

Declaration
public double Minimum { get; set; }
Property Value
Type Description
System.Double

Pointer

Gets or sets pointer of gauge.

Declaration
public GaugePointer Pointer { get; set; }
Property Value
Type Description
GaugePointer

Scale

Gets or sets scale of gauge.

Declaration
public GaugeScale Scale { get; set; }
Property Value
Type Description
GaugeScale

Value

Gets or sets the currenta value of gauge.

Declaration
public double Value { get; set; }
Property Value
Type Description
System.Double

Vertical

Gets a value that specifies is gauge vertical or not.

Declaration
public bool Vertical { get; }
Property Value
Type Description
System.Boolean

Methods

Assign(Base)

Copies the contents of another, similar object.

Declaration
public override void Assign(Base source)
Parameters
Type Name Description
Base source

Source object to copy the contents from.

Overrides
ReportComponentBase.Assign(Base)
Remarks

Call Assign to copy the properties from another object of the same type. The standard form of a call to Assign is

destination.Assign(source);

which tells the destination object to copy the contents of the source object to itself. In this method, all child objects are ignored. If you want to copy child objects, use the AssignAll(Base) method.

See Also
AssignAll(Base)

Clone()

Clone Gauge Object

Declaration
public object Clone()
Returns
Type Description
System.Object

clone of this object

Draw(FRPaintEventArgs)

Draws the gauge.

Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Type Name Description
FRPaintEventArgs e

Draw event arguments.

Overrides
ReportComponentBase.Draw(FRPaintEventArgs)

GetData()

Gets the data from a datasource that the object is connected to.

Declaration
public override void GetData()
Overrides
ReportComponentBase.GetData()
Remarks

This method is called by the report engine before processing the object.

Do not call it directly. You may override it if you are developing a new FastReport component. In this method you should get the data from a datasource that the object is connected to.

GetExpressions()

Gets all expressions contained in the object.

Declaration
public override string[] GetExpressions()
Returns
Type Description
System.String[]

Array of expressions or null if object contains no expressions.

Overrides
ReportComponentBase.GetExpressions()
Remarks

Do not call this method directly. You may override it if you are developing a new component for FastReport.

This method is called by FastReport each time before run a report. FastReport do this to collect all expressions and compile them. For example, GetExpressions method of the TextObject class parses the text and returns all expressions found in the text.

Serialize(FRWriter)

Serializes the object.

Declaration
public override void Serialize(FRWriter writer)
Parameters
Type Name Description
FRWriter writer

Writer object.

Overrides
ReportComponentBase.Serialize(FRWriter)
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(Base) methods;
  • saving the object to the designer's clipboard;
  • saving the object to the preview (when run a report).

Implements

IFRSerializable
System.ICloneable
Back to top Generated by DocFX