Constructor StyledSegment
StyledSegment(string, MarkdownStyleRole, string?, string?, Attribute?)
Initializes a new StyledSegment.
public StyledSegment(string text, MarkdownStyleRole styleRole, string? url = null, string? imageSource = null, Attribute? attribute = null)
Parameters
textstringThe display text of the segment.
styleRoleMarkdownStyleRoleThe semantic role that controls rendering style.
urlstringOptional hyperlink URL. null for non-link segments.
imageSourcestringOptional image source path. null for non-image segments.
attributeAttribute?Optional explicit Attribute. When non-null, this attribute is used directly for rendering, bypassing the StyleRole-based resolution in GetAttributeForSegment(View, StyledSegment, ISyntaxHighlighter, Color?).