Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfToken

OfficeIMO.Rtf.Syntax

Namespace
OfficeIMO.Rtf.Syntax
Assembly
OfficeIMO.Rtf
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Represents one lexical token from an RTF stream.

Inheritance

  • object
  • RtfToken

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public RtfTokenKind Kind { get; } #

Token kind.

public int Position { get; } #

Zero-based input position.

public string RawText { get; } #

Raw source text that produced the token.

public string? Text { get; } #

Literal text value for RtfTokenKind.Text tokens.

public string? ControlName { get; } #

Control word name without the leading backslash.

public char? ControlSymbol { get; } #

Control symbol character without the leading backslash.

public int? Parameter { get; } #

Optional numeric parameter for control words and hex-encoded symbols.

public bool HasParameter { get; } #

Whether the control explicitly supplied a numeric parameter.

public byte[]? BinaryData { get; } #

Binary payload following a \binN control word.