.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SyntaxHighlightToken Class

A range of text with format settings.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[ComVisible(true)]
public class SyntaxHighlightToken
<ComVisible(True)>
Public Class SyntaxHighlightToken
[ComVisible(true)]
public class SyntaxHighlightToken
<ComVisible(True)>
Public Class SyntaxHighlightToken
[ComVisible(true)]
public class SyntaxHighlightToken
<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.

Tip

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E2993.

Inheritance

Object
SyntaxHighlightToken
See Also