Back to Devexpress

ISyntaxHighlightService.Execute() Method

officefileapi-devexpress-dot-xtrarichedit-dot-services-dot-isyntaxhighlightservice.md

latest2.2 KB
Original Source

ISyntaxHighlightService.Execute() Method

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

Namespace : DevExpress.XtraRichEdit.Services

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Execute()
vb
Sub Execute

Remarks

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

View Example

csharp
public void Execute()
{
    List<SyntaxHighlightToken> tSqltokens = ParseTokens();
    document.ApplySyntaxHighlight(tSqltokens);
}
public void ForceExecute()
{
    Execute();
}
vb
Private Sub Execute() Implements ISyntaxHighlightService.Execute
    Dim tSqltokens As List(Of SyntaxHighlightToken) = ParseTokens()
    document.ApplySyntaxHighlight(tSqltokens)
End Sub

Public Sub ForceExecute() Implements ISyntaxHighlightService.ForceExecute
    Execute()
End Sub

See Also

ApplySyntaxHighlight(List<SyntaxHighlightToken>)

ISyntaxHighlightService Interface

ISyntaxHighlightService Members

DevExpress.XtraRichEdit.Services Namespace