![BulletGraph Configuring Comparative Ranges 1.png](images/BulletGraph_Configuring_Comparative_Ranges_1.png)
This topic explains, with code examples, how to configure ranges in the UltraBulletGraph™ control. This includes the number of ranges and their positions, lengths, widths, and formatting.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
The UltraBulletGraph control supports multiple comparative ranges through populating its Ranges
collection.
Each range can be configured individually by specifying its starting and ending value (in the measures of the scale), fill color, and border thickness and color. The size of a comparative range in the across-the-scale is configurable by adjusting its inner and outer margins.
The following table explains briefly the configurable aspects of UltraBulletGraph control’s comparative ranges and maps them to properties that configure them.
The following table maps the desired behavior to its respective property settings.
The screenshot below demonstrates how a comparative range added to the UltraBulletGraph looks as a result of the following settings:
Following is the code that implements this example.
In C#:
LinearGraphRange range4 = new LinearGraphRange();
range4.Brush = new SolidColorBrush(Color.Green);
range4.StartValue = 6;
range4.EndValue = 89;
range4.InnerEndExtent = .5;
range4.InnerStartExtent = .5;
range4.OuterEndExtent = .8;
range4.OuterStartExtent = .8;
range4.Outline = new SolidColorBrush(Color.Black);
bulletGraph.Ranges.Add(range4);
In VB:
Dim range4 as New LinearGraphRange()
range4.Brush = New SolidColorBrush(Color.Green)
range4.StartValue = 6
range4.EndValue = 89
range4.InnerEndExtent = .5
range4.InnerStartExtent = .5
range4.OuterEndExtent = .8
range4.OuterStartExtent = .8
range4.Outline = New SolidColorBrush(Color.Black)
bulletGraph.Ranges.Add(range4)
The following topics provide additional information related to this topic.