MapPie.Size Property
Specifies the size of a Pie item.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 20 | An integer value. |
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-map-pie-parameters-t202713
char letter = 'A';
double defaultValue = 10;
MapPie pie;
private void Form1_Load(object sender, EventArgs e) {
MapItemStorage storage = new MapItemStorage();
pie = new MapPie() {
Location = new GeoPoint(51.507222, -0.1275),
Size = 100,
Argument = "pie",
};
pie.Segments.Add(new PieSegment() { Argument = NextLetter(), Value = defaultValue });
pie.Segments.Add(new PieSegment() { Argument = NextLetter(), Value = defaultValue });
pie.Segments.Add(new PieSegment() { Argument = NextLetter(), Value = defaultValue });
storage.Items.Add(pie);
mapControl1.Layers.Add(new VectorItemsLayer() {
Data = storage,
Colorizer = new KeyColorColorizer() {
ItemKeyProvider = new ArgumentItemKeyProvider(),
PredefinedColorSchema = PredefinedColorSchema.Palette
}
});
lbRotationDirection.DataSource = Enum.GetValues(typeof(RotationDirection));
lbSegments.DataSource = pie.Segments;
}
string NextLetter() {
return letter++.ToString();
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Size property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also