Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfToken

Namespace OfficeIMO.Rtf.Syntax
Assembly OfficeIMO.Rtf
Modifiers sealed

Represents one lexical token from an RTF stream.

Inheritance

  • Object
  • RtfToken

Usage

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

Returned or exposed by

Methods

public override String ToString() #
Returns: String

Properties

public RtfTokenKind Kind { get; } #

Token kind.

public Int32 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 Text tokens.

public String ControlName { get; } #

Control word name without the leading backslash.

public Nullable<Char> ControlSymbol { get; } #

Control symbol character without the leading backslash.

public Nullable<Int32> Parameter { get; } #

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

public Boolean HasParameter { get; } #

Whether the control explicitly supplied a numeric parameter.

public Byte[] BinaryData { get; } #

Binary payload following a \binN control word.