DrawMapItemEventArgs.StrokeWidth Property

Gets or sets a value that specifies the width of the stroke on the current map item.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public int StrokeWidth { get; set; }
Public Property StrokeWidth As Integer

Property Value

Type Description
Int32

An integer value that is the width of the stroke on the current map item.

Remarks

Use the StrokeWidth property when implementing the MapControl.DrawMapItem event.

Examples

This example illustrates how to customize vector items when they are drawn on a map.

To do this, it's necessary to handle the MapControl.DrawMapItem event and provide new values for the event arguments object.

using DevExpress.XtraMap;

namespace DrawMapItemExample {

    public class MapItemFactory : DefaultMapItemFactory {

        protected override void InitializeItem(MapItem item, object obj) {
            base.InitializeItem(item, obj);
            MapRectangle rect = item as MapRectangle;
            if(rect != null) {
                rect.Width = 1000;
                rect.Height = 1000;
            }
        }
    }
}

Implements

DevExpress.XtraMap.Drawing.IRenderItemStyle.StrokeWidth
See Also