Class LineStyleReader
- Namespace
- EncDotNet.S100.Portrayals
- Assembly
- EncDotNet.S100.Portrayals.dll
Reads an S-100 line style XML file and produces a LineStyle: its pen, dashes, interval and the symbols placed along the line, or the line styles of a composite line style.
public static class LineStyleReader
- Inheritance
-
LineStyleReader
- Inherited Members
Remarks
S-100 Ed 5.2 Part 9 line style files define pen properties and optional dash patterns. The expected XML structure is:
<lineStyle>
<pen>
<color>CHGRF</color>
<width>0.32</width>
</pen>
<dash>
<start>3.0</start>
<stop>1.0</stop>
</dash>
</lineStyle>
The color element contains a color token that is resolved against the active palette at render time.
Methods
Read(Stream, string)
Reads a line style definition from a stream.
public static LineStyle Read(Stream stream, string name)
Parameters
streamStreamThe stream containing the line style XML.
namestringThe line style name (from the catalogue item ID).