Class ContourStyle
Defines the visual style for a contour line: a depth contour, an isobar, or a line of equal wave height.
public sealed class ContourStyle
- Inheritance
-
ContourStyle
- Inherited Members
Properties
Color
Line colour as a hex string (e.g. "#333333").
public required string Color { get; init; }
Property Value
DashPattern
Dash pattern. null or empty means a solid line.
Values alternate between dash length and gap length.
public float[]? DashPattern { get; init; }
Property Value
- float[]
LineWidth
Line width in display units.
public required float LineWidth { get; init; }
Property Value
ShowLabel
Whether to label this contour line with its value.
public bool ShowLabel { get; init; }
Property Value
Unit
The unit of Value as a UCUM-style symbol (e.g. "m",
"hPa", "m/s"), matching the units of the coverage field
the contour is traced on.
public required string Unit { get; init; }
Property Value
Value
The value this contour represents, in Unit. Products that
work in typed quantities convert where they build the contour (for
example an S-102 depth contour uses Depth.Metres and "m").
public required double Value { get; init; }