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

ISyntaxHighlightService.ForceExecute() Method

Reserved for future use.

Namespace: DevExpress.XtraRichEdit.Services

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

Declaration

void ForceExecute()

Remarks

Implement this method by calling the ISyntaxHighlightService.Execute method.

Note

A complete code sample project is available at How to create Syntax Highlight Tokens to implement T-SQL language syntax highlighting repository on GitHub.

The code sample below uses the ParseTokens method to create a list of SyntaxHighlightToken objects and pass it to the SubDocument.ApplySyntaxHighlight method.

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