Back to Devexpress

SyntaxHighlightToken Class

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-9f96fa3f.md

latest1.9 KB
Original Source

SyntaxHighlightToken Class

A range of text with format settings.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[ComVisible(true)]
public class SyntaxHighlightToken
vb
<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.

View Example: Syntax Highlighting

Inheritance

Object SyntaxHighlightToken

See Also

SyntaxHighlightToken Members

ISyntaxHighlightService

ApplySyntaxHighlight(List<SyntaxHighlightToken>)

DevExpress.XtraRichEdit.API.Native Namespace