.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

SyntaxHighlightToken Class

A range of text with format settings.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.2.Core.dll

Declaration

[ComVisible(true)]
public class SyntaxHighlightToken

Remarks

A SyntaxHighlightToken object specifying a token (lexeme) with highlight settings. It defines a text range with formatting. You can create tokens, using a parser, to parse a document text and specify text formatting for a token. You can pass a collection of tokens to the SubDocument.ApplySyntaxHighlight to highlight the corresponding document ranges.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SyntaxHighlightToken class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
SyntaxHighlightToken
See Also