Back to API Reference
Struct

ClipboardSpan

sealed

One persistent formatting annotation clipped to UTF-16 coordinates within VisibleText.

public int Offset{ get }

UTF-16 offset from the start of the copied visible text.

public int Length{ get }

Length in UTF-16 code units.

public BaseModifier Modifier{ get }

The modifier applied to this attributed range.

public string Signature{ get }

Stable modifier identity used by the native UniText clipboard format.

public ParseRule Rule{ get }

The parse rule that owns this attributed range.

public string SourceToken{ get }

The source rule's externally known syntax token, when it has one.

public string Parameter{ get }

The formatting parameter carried by the source annotation.

public bool IsAtomic{ get }

Whether the span represents one indivisible replacement rather than a styled range.

[ctor]public ClipboardSpan()

Creates one formatting range in UTF-16 coordinates. The range must be non-empty; modifier and rule identify the destination style.