All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1.
19.2
The page you are viewing does not exist in version 19.2.
19.1
The page you are viewing does not exist in version 19.1.
18.2
The page you are viewing does not exist in version 18.2.
18.1
The page you are viewing does not exist in version 18.1.
17.2
The page you are viewing does not exist in version 17.2.

DrawMapSegmentableItemEventArgs Class

Contains segment data for the MapPath and MapPie vector items.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.2.dll

Declaration

public class DrawMapSegmentableItemEventArgs :
    DrawMapShapeEventArgs,
    ICompositeRenderItemStyle,
    IShapeRenderItemStyle,
    IRenderItemStyle

Remarks

Handle the MapControl.DrawMapItem event and cast its EventArgs object to the DrawMapSegmentableItemEventArgs type. The DrawMapSegmentableItemEventArgs.Segments property contains an array of the Fill, Stroke, and StrokeWidth values for MapPath or MapPie segments.

The following code sets the fill color of odd MapPie segments to red:

private void mapControl1_DrawMapItem(object sender, DrawMapItemEventArgs e) {  
  if(e.Item is MapPie) {  
    DrawMapSegmentableItemEventArgs args = (DrawMapSegmentableItemEventArgs)e;  
    for(int i = 1; i < args.Segments.Length; i += 2){  
      args.Segments[i].Fill = Color.Red;  
    }
  }  
}  
See Also