Skip to main content
All docs
V25.1
  • DrawMapSegmentEventArgs.StrokeWidth Property

    Gets or sets the segment outline width.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.dll

    NuGet Package: DevExpress.Win.Map

    Declaration

    public int StrokeWidth { get; set; }

    Property Value

    Type Description
    Int32

    The segment outline width.

    Remarks

    The following code sets the outline color and width of odd MapPie segments:

    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].StrokeWidth = 2;
           args.Segments[i].Stroke = Color.Red;  
        }
      }  
    }  
    
    See Also