Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ISyntaxHighlightService.Execute() Method

This method is called if the text content of the control is modified.

Namespace: DevExpress.XtraRichEdit.Services

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

void Execute()

Remarks

Use the Execute method to parse the text into tokens and highlight the document text using the SubDocument.ApplySyntaxHighlight method.

View Example

public void Execute()
{
    List<SyntaxHighlightToken> tSqltokens = ParseTokens();
    document.ApplySyntaxHighlight(tSqltokens);
}
public void ForceExecute()
{
    Execute();
}
See Also