Class BulletGraph
Represents the bullet graph. To render this, create an instance of the SfBulletGraph class, and set required properties.
Inherited Members
Namespace: Syncfusion.Windows.Forms.BulletGraph
Assembly: Syncfusion.BulletGraph.Windows.dll
Syntax
public class BulletGraph : BaseControl, IThemeProvider, IVisualStyle, IDisposable
Constructors
BulletGraph()
Initializes a new instance of the BulletGraph class.
Declaration
public BulletGraph()
Properties
BindRangeStrokeToLabels
Gets or sets the bind range stroke labels of the bullet graph.
Declaration
public bool BindRangeStrokeToLabels { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
BindRangeStrokeToTicks
Gets or sets the bind range stroke ticks of the bullet graph.
Declaration
public bool BindRangeStrokeToTicks { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Caption
Gets or sets the caption of the bullet graph.
Declaration
public string Caption { get; set; }
Property Value
| Type |
|---|
| System.String |
CaptionDisplayMode
Gets or sets the caption display mode of the bullet graph.
Declaration
public CaptionDisplayMode CaptionDisplayMode { get; set; }
Property Value
| Type |
|---|
| CaptionDisplayMode |
CaptionFontSize
Gets or sets the caption font size of the bullet graph.
Declaration
public int CaptionFontSize { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
CaptionMaximumWidth
Gets or sets the caption maximum width of the bullet graph.
Declaration
public double CaptionMaximumWidth { get; set; }
Property Value
| Type |
|---|
| System.Double |
CaptionPosition
Gets or sets the caption position of the bullet graph.
Declaration
public BulletGraphCaptionPosition CaptionPosition { get; set; }
Property Value
| Type |
|---|
| BulletGraphCaptionPosition |
CaptionStroke
Gets or sets the caption stroke of the bullet graph.
Declaration
public Color CaptionStroke { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
ComparativeMeasure
Gets or sets the comparative measure of the bullet graph.
Declaration
public double ComparativeMeasure { get; set; }
Property Value
| Type |
|---|
| System.Double |
ComparativeMeasureSymbolStroke
Gets or sets the comparative measure symbol stroke of the bullet graph.
Declaration
public Color ComparativeMeasureSymbolStroke { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
ComparativeMeasureSymbolStrokeThickness
Gets or sets the comparative measure symbol stroke thickness of the bullet graph.
Declaration
public int ComparativeMeasureSymbolStrokeThickness { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
FeaturedMeasure
Gets or sets the featured measure of the bullet graph.
Declaration
public double FeaturedMeasure { get; set; }
Property Value
| Type |
|---|
| System.Double |
FeaturedMeasureBarStroke
Gets or sets the featured measure bar stroke of the bullet graph.
Declaration
public Color FeaturedMeasureBarStroke { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
FeaturedMeasureBarStrokeThickness
Gets or sets the featured measure bar stroke thickness of the bullet graph.
Declaration
public int FeaturedMeasureBarStrokeThickness { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
FlowDirection
Gets or sets the flow direction of the bullet graph.
Declaration
public BulletGraphFlowDirection FlowDirection { get; set; }
Property Value
| Type |
|---|
| BulletGraphFlowDirection |
Font
Gets or sets the System.Drawing.Font value for the control.
Declaration
public override Font Font { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Font |
Interval
Gets or sets the interval of the bullet graph.
Declaration
public int Interval { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
IsVisualStyleEnabled
Gets a value indicating whether the visual style based theme is applied to the control and also indicates whether the theme files are referred from external assemblies or not.
Declaration
public bool IsVisualStyleEnabled { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | Return true, if the visual style based theme is applied to the control. Otherwise returns false. |
LabelFontSize
Gets or sets the label font size of the bullet graph.
Declaration
public int LabelFontSize { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
LabelFormat
Gets or sets the label format of the bullet graph.
Declaration
public string LabelFormat { get; set; }
Property Value
| Type |
|---|
| System.String |
LabelOffset
Gets or sets the label offset of the bullet graph.
Declaration
public int LabelOffset { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
LabelPosition
Gets or sets the label position of the bullet graph.
Declaration
public BulletGraphLabelsPosition LabelPosition { get; set; }
Property Value
| Type |
|---|
| BulletGraphLabelsPosition |
LabelStroke
Gets or sets the label stroke of the bullet graph.
Declaration
public Color LabelStroke { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
MajorTickSize
Gets or sets the major tick size of the bullet graph.
Declaration
public int MajorTickSize { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
MajorTickStroke
Gets or sets the major tick stroke of the bullet graph.
Declaration
public Color MajorTickStroke { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
MajorTickStrokeThickness
Gets or sets the majorTick stroke thickness of the bullet graph.
Declaration
public int MajorTickStrokeThickness { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Maximum
Gets or sets the maximum of the bullet graph.
Declaration
public int Maximum { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Minimum
Gets or sets the minimum of the bullet graph.
Declaration
public int Minimum { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
MinorTickSize
Gets or sets the minor tick size of the bullet graph.
Declaration
public int MinorTickSize { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
MinorTicksPerInterval
Gets or sets the minor ticks per interval of the bullet graph.
Declaration
public int MinorTicksPerInterval { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
MinorTickStroke
Gets or sets the minor tick stroke of the bullet graph.
Declaration
public Color MinorTickStroke { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
MinorTickStrokeThickness
Gets or sets the minor tick stroke thickness of the bullet graph.
Declaration
public int MinorTickStrokeThickness { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Orientation
Gets or sets the orientation of the bullet graph.
Declaration
public Orientation Orientation { get; set; }
Property Value
| Type |
|---|
| System.Windows.Forms.Orientation |
QualitativeRanges
Gets or sets the qualitative ranges of the bullet graph.
Declaration
public QualitativeRangeCollection QualitativeRanges { get; set; }
Property Value
| Type |
|---|
| QualitativeRangeCollection |
QualitativeRangesSize
Gets or sets the qualitative ranges size of the bullet graph.
Declaration
public int QualitativeRangesSize { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
QuantitativeScaleLength
Gets or sets the quantitative scale length of the bullet graph.
Declaration
public int QuantitativeScaleLength { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
ShowLabels
Gets or sets the show labels of the bullet graph.
Declaration
public bool ShowLabels { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowTicks
Gets or sets the show ticks of the bullet graph.
Declaration
public bool ShowTicks { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowToolTip
Gets or sets the show toolTip of the bullet graph.
Declaration
public bool ShowToolTip { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ThemeStyle
Gets or sets the BulletGraphVisualStyle value used to customize the appearance of the BulletGraph.
Declaration
public BulletGraphVisualStyle ThemeStyle { get; set; }
Property Value
| Type |
|---|
| BulletGraphVisualStyle |
Remarks
This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control.
TickPosition
Gets or sets the tick position of the bullet graph.
Declaration
public BulletGraphTicksPosition TickPosition { get; set; }
Property Value
| Type |
|---|
| BulletGraphTicksPosition |
Methods
Dispose()
Releases resources used by the BulletGraph control.
Declaration
public void Dispose()
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
GetControlName(String)
Helps to apply the ControlName settings in control
Declaration
public override string GetControlName(string controlName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | controlName | ControlName |
Returns
| Type |
|---|
| System.String |
Overrides
OnMouseMove(MouseEventArgs)
Updates the current mouse location and displays tooltip if available.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MouseEventArgs | e | Mouse event data. |
OnPaint(PaintEventArgs)
Renders the bullet graph elements based on current visual style settings.
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.PaintEventArgs | e | Paint event data. |
OnSizeChanged(EventArgs)
Recalculates bullet graph dimensions when the control size changes.
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | Event data. |
OnThemeNameChanged(String)
Helps to apply the ThemeName settings in control
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | themeName | ThemeName |