Method Parse
- Namespace
- SharpVectors.Renderers.Wpf
- Assembly
- SharpVectors.Rendering.Wpf.dll
Parse(string)
Parse a paint-order CSS value string to the corresponding enum value
public static WpfPaintOrder Parse(string paintOrderValue)
Parameters
paintOrderValuestringThe CSS paint-order value to parse. Can be null, empty, whitespace, or one of: "normal", "stroke", "fill", "markers" Can also be space-separated keywords like "stroke fill", "markers stroke fill", etc.
Returns
- WpfPaintOrder
The corresponding WpfPaintOrder enum value. Returns Normal if the value is null, empty, or unrecognized. Parsing is case-insensitive.
Remarks
Phase 2 Implementation (Enhanced): Now supports multi-keyword paint-order values. The first keyword in the sequence determines the rendering behavior: - "stroke fill" → interpreted as Stroke (stroke-first order) - "fill stroke" → interpreted as Fill (fill-first order) - "markers stroke fill" → interpreted as Markers (markers-first order, Phase 3+)
Subsequent keywords are reserved for future phases that may support more granular multi-order rendering control.