Skip to main content
All docs
V23.2

DrawMapSegmentEventArgs.Fill Property

Gets or sets the color that fills a map segment.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

public Color Fill { get; set; }

Property Value

Type Description
Color

The color that fills a map segment.

Remarks

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