'Declaration Public Class C1BulletGraph Inherits System.Windows.Forms.Control
public class C1BulletGraph : System.Windows.Forms.Control
'Declaration Public Class C1BulletGraph Inherits System.Windows.Forms.Control
public class C1BulletGraph : System.Windows.Forms.Control
The C1BulletGraph class helps you to initialize an instance of the BulletGraph control and define its behavior with the help of the following properties:
The example instantiates the object of C1BulletGraph and shows the basic implementation with various options mentioned above.
C# |
Copy Code
|
---|---|
private void InitializeBulletGraph() { //Initialize the BulletGraph control C1BulletGraph c1BulletGraph = new C1BulletGraph(); c1BulletGraph.Bounds = new Rectangle(20,50,350,80); this.Controls.Add(c1BulletGraph); //Sets the values of the featured measure and comparative measure for the BulletGraph c1BulletGraph.Value = 450; c1BulletGraph.Target = 400; //Defines the range of the quantitative scale c1BulletGraph.Minimum = 0; c1BulletGraph.Maximum = 500; //Sets additional properties of the quantitative scale c1BulletGraph.GraphScale.LabelsInterval = 100; c1BulletGraph.GraphScale.MarksInterval = 100; c1BulletGraph.GraphScale.Format = "$###0"; //Defines the qualitative ranges for the Bullet Graph c1BulletGraph.Bad.From =0; c1BulletGraph.Bad.To = 150; c1BulletGraph.Good.From =150; c1BulletGraph.Good.To = 350; //Customizes the BulletGraph Caption c1BulletGraph.Caption.Text = "Revenue YTD ($1000s)"; c1BulletGraph.Caption.Position = BulletGraphCaptionPosition.Left; c1BulletGraph.Caption.Alignment = StringAlignment.Far; c1BulletGraph.Caption.Width =120; //Orients the BulletGraph horizontally c1BulletGraph.Orientation = C1GaugeOrientation.Horizontal; //Shows the scale values in reversed order (Maximum to Minimum) c1BulletGraph.IsReversed = true; //Styling the BulletGraph c1BulletGraph.Styles.Labels.Caption.Font= new Font(FontFamily.GenericSansSerif,10); c1BulletGraph.Styles.Marks.Scale.Color = Color.Blue; } |
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1Gauge.C1BulletGraph