Having trouble getting help?
Contact Support
Contact Support
Caption Settings in Windows Forms Bullet Graph
17 Feb 20252 minutes to read
The Caption for a Bullet Graph specifies a unique label describing the value represented in the BulletGraph.
BulletGraph bullet = new BulletGraph();
bullet.Dock = DockStyle.Fill;
bullet.Caption = " Revenue YTD \n $ in thousands";
bullet.QualitativeRanges.Add(new QualitativeRange() { RangeEnd = 3, RangeStroke = Color.LightGray });
bullet.QualitativeRanges.Add(new QualitativeRange() { RangeEnd = 7, RangeStroke = Color.Gray });
bullet.QualitativeRanges.Add(new QualitativeRange() { RangeEnd = 10, RangeStroke = Color.DarkGray });
this.Controls.Add(bullet);
Caption Position
The caption in the Bullet Graph is placed at the start or end of the quantitative scale by choosing from one of the two options available in the CaptionPosition property. They are:
- Near (Default)
- Far
BulletGraph bullet = new BulletGraph();
bullet.Dock = DockStyle.Fill;
bullet.Caption = " Revenue YTD \n $ in thousands";
bullet.CaptionPosition = BulletGraphCaptionPosition.Far; bullet.QualitativeRanges.Add(new QualitativeRange() { RangeEnd = 3, RangeStroke = Color.LightGray });
bullet.QualitativeRanges.Add(new QualitativeRange() { RangeEnd = 7, RangeStroke = Color.Gray });
bullet.QualitativeRanges.Add(new QualitativeRange() { RangeEnd = 10, RangeStroke = Color.DarkGray });
this.Controls.Add(bullet);