Completed
Last Updated: 11 Oct 2021 14:28 by ADMIN
Release LIB 2021.3.1018 (18 Oct 2021)
Dinko
Created on: 01 Oct 2021 13:33
Category: SyntaxEditor
Type: Bug Report
0
SyntaxEditor: NullReferenceException is thrown when using LineHighlightTagger

When using LineHighlightTagger a NullReferenceException is thrown. To workaround this exception, you can add a custom TextFormatDefinition object to the TextFormatDefinitions collection of the RadSyntaxEditor.

this.syntaxEditor.TextFormatDefinitions.AddLast(LineHighlightTagger.LineHighlightFormatDefinition, new TextFormatDefinition(new Telerik.Windows.Controls.SyntaxEditor.UI.Pen(new SolidColorBrush(Colors.Gray), new Thickness(1))));

0 comments