Class RadialGaugeRenderer
Default theme render.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Gauge
Assembly: Syncfusion.Gauge.Windows.dll
Syntax
public class RadialGaugeRenderer : IRadialGaugeRenderer
Constructors
RadialGaugeRenderer(RadialGauge)
Constructor of the Renderer class
Declaration
public RadialGaugeRenderer(RadialGauge radialGauge)
Parameters
Type | Name | Description |
---|---|---|
RadialGauge | radialGauge | Radial Gauge |
Methods
AdjustFontBounds(Graphics, Font)
Used to calculate the text bounds
Declaration
public void AdjustFontBounds(Graphics Graphics, Font Font)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
System.Drawing.Font | Font | Font |
DrawCircle(Graphics, Point, Int32, Int32, Int32, Single, Color, Color)
Used to draw the Gauge Arc with specified radius and color values
Declaration
public void DrawCircle(Graphics Graphics, Point Center, int gaugeRadius, int StartAngle, int SweepAngle, float frameThickness, Color ArcColor, Color fillColor)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics to draw the control |
System.Drawing.Point | Center | Center of the Radial gauge |
System.Int32 | gaugeRadius | Radius used to draw the gauge arc |
System.Int32 | StartAngle | Angle in degrees measured clockwise from the x-axis to the starting point of the arc |
System.Int32 | SweepAngle | Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc |
System.Single | frameThickness | |
System.Drawing.Color | ArcColor | Color used to fill the gauge arc |
System.Drawing.Color | fillColor | Color used to fill the gauge arc based on the current value of RadialGauge |
DrawGaugeLabel(Graphics, Point, Int32)
Used to draw the label.
Declaration
public void DrawGaugeLabel(Graphics Graphics, Point Center, int GaugeRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
System.Drawing.Point | Center | Center point of the Gauge |
System.Int32 | GaugeRadius | Radius of the OuterArc |
DrawMultipleNeedle(Graphics, Needle, Int32, Int32, Int32, Int32, Point)
Method used to draw customization needle.
Declaration
public void DrawMultipleNeedle(Graphics Graphics, Needle Needle, int GaugeArcStart, int GaugeArcEnd, int NeedleRadius, int NeedleWidth, Point Center)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
Needle | Needle | Needles |
System.Int32 | GaugeArcStart | Start angle of the Outer arc |
System.Int32 | GaugeArcEnd | Sweep angle of the Outer Arc |
System.Int32 | NeedleRadius | Length of the Needle |
System.Int32 | NeedleWidth | Width of the Needle |
System.Drawing.Point | Center | Center point of the Gauge |
DrawNeedle(Graphics, Int32, Int32, Int32, Int32, Point)
Method used to draw needle
Declaration
public void DrawNeedle(Graphics Graphics, int GaugeArcStart, int GaugeArcEnd, int NeedleRadius, int NeedleWidth, Point Center)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
System.Int32 | GaugeArcStart | Start angle of the Outer arc |
System.Int32 | GaugeArcEnd | Sweep angle of the Outer Arc |
System.Int32 | NeedleRadius | Length of the Needle |
System.Int32 | NeedleWidth | Width of the Needle |
System.Drawing.Point | Center | Center point of the Gauge |
DrawOuterArc(Graphics, Int32, Int32, Point, Int32)
Method used to draw outer arc.
Declaration
public void DrawOuterArc(Graphics Graphics, int GaugeArcStart, int GaugeArcEnd, Point Center, int GaugeRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
System.Int32 | GaugeArcStart | Start angle of the Outer arc |
System.Int32 | GaugeArcEnd | Sweep angle of the Outer Arc |
System.Drawing.Point | Center | Center point of the Gauge |
System.Int32 | GaugeRadius |
DrawRanges(Graphics, GraphicsPath, Int32, Int32, Int32, Point)
Used to draw the ranges.
Declaration
public void DrawRanges(Graphics Graphics, GraphicsPath GraphicsPath, int GaugeArcStart, int GaugeArcEnd, int GaugeArcRadius, Point Center)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
System.Drawing.Drawing2D.GraphicsPath | GraphicsPath | Graphics path |
System.Int32 | GaugeArcStart | Start angle of the Outer arc |
System.Int32 | GaugeArcEnd | Sweep angle of the Outer Arc |
System.Int32 | GaugeArcRadius | Radius of the arc |
System.Drawing.Point | Center | Center of the Gauge |
DrawTickMarks(Graphics, GraphicsPath, Int32, Int32, Int32, Int32, Point, Int32)
Used to draw the tick marks.
Declaration
public void DrawTickMarks(Graphics Graphics, GraphicsPath GraphicsPath, int GaugeArcRadius, int GaugeArcStart, int GaugeArcEnd, int MajorTickMarkWidth, Point Center, int ScaleNumbersRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | Graphics | Graphics |
System.Drawing.Drawing2D.GraphicsPath | GraphicsPath | Graphics path |
System.Int32 | GaugeArcRadius | Start angle of the Outer arc |
System.Int32 | GaugeArcStart | |
System.Int32 | GaugeArcEnd | Sweep angle of the Outer Arc |
System.Int32 | MajorTickMarkWidth | Width of the TickMark |
System.Drawing.Point | Center | Center of the Gauge |
System.Int32 | ScaleNumbersRadius | Radius of the scale value arc |
UpdateRenderer(PaintEventArgs)
Updates the Render
Declaration
public void UpdateRenderer(PaintEventArgs PaintEventArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | PaintEventArgs | PaintEventArgs which contains event data |