Skip to main content
All docs
V25.1
  • Measurements.Style Property

    Returns ruler style options.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.dll

    NuGet Package: DevExpress.Win.Map

    Declaration

    public MapRulerStyle Style { get; }

    Property Value

    Type Description
    MapRulerStyle

    The ruler style options.

    Remarks

    Use the Style property to define the style for all rulers on the map. The following example changes the ruler’s fill color, transparency, outline color, and outline width:

    image

    mapControl1.Measurements.Style.Fill= Color.OrangeRed;
    mapControl1.Measurements.Style.AreaTransparency = 100;
    mapControl1.Measurements.Style.Stroke = Color.DarkRed;
    mapControl1.Measurements.Style.StrokeWidth = 2;
    

    Related API members:

    Name

    Description

    AreaTransparency

    Gets or sets the area ruler’s transparency.

    Fill

    Gets or sets the ruler’s fill color. The fill color is also used to draw the outline border of area rulers and distance ruler borders.

    Stroke

    Gets or sets the ruler’s outline color.

    StrokeWidth

    Gets or sets the ruler’s outline width.

    See Also