Class StyledSegment
A segment of styled text produced by Markdown during layout.
public sealed class StyledSegment
- Inheritance
-
StyledSegment
- Inherited Members
Remarks
Each segment carries the display text, a MarkdownStyleRole that controls visual rendering, and optional URL / image-source metadata for hyperlinks and images.
Constructors
- StyledSegment(string, MarkdownStyleRole, string?, string?, Attribute?)
Initializes a new StyledSegment.
Properties
- Attribute
Gets the explicit Attribute for this segment, or null if the attribute should be resolved from StyleRole.
- ImageSource
Gets the image source path, or null if this is not an image segment.
- StyleRole
Gets the semantic role that determines how this segment is rendered.
- Text
Gets the display text of this segment.