Back to Devexpress

ISyntaxHighlightService.ForceExecute() Method

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

latest2.4 KB
Original Source

ISyntaxHighlightService.ForceExecute() Method

Reserved for future use.

Namespace : DevExpress.XtraRichEdit.Services

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void ForceExecute()
vb
Sub ForceExecute

Remarks

Implement this method by calling the ISyntaxHighlightService.Execute method.

View Example

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

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