The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SubDocument.ApplySyntaxHighlight(List<SyntaxHighlightToken>) Method

Performs a batch update of text formatting for document ranges corresponding to specified tokens.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void ApplySyntaxHighlight(
    List<SyntaxHighlightToken> tokens
)
Sub ApplySyntaxHighlight(
    tokens As List(Of SyntaxHighlightToken)
)
void ApplySyntaxHighlight(
    List<SyntaxHighlightToken> tokens
)
Sub ApplySyntaxHighlight(
    tokens As List(Of SyntaxHighlightToken)
)

Parameters

Name Type Description
tokens List<SyntaxHighlightToken>

A List<T><SyntaxHighlightToken,> collection containing tokens to apply, ordered by the SyntaxHighlightToken.Start value.

Parameters

Name Type Description
tokens List<SyntaxHighlightToken>

A List<T><SyntaxHighlightToken,> collection containing tokens to apply, ordered by the SyntaxHighlightToken.Start value.

Remarks

Call the SubDocument.ApplySyntaxHighlight method within the ISyntaxHighlightService.Execute() method to enable syntax highlighting.

Refer to the How to: Highlight Document Syntax example (or How to: Highlight Document Syntax for WPF) for information on how to obtain the collection of SyntaxHighlightToken objects.

See Also