Changes visual element properties.
This method accesses CurrentElements, so it must be called only during
a Transform(ITextRunConstructionContext, IList<(Of <<'(VisualLineElement>)>>)) call.
This method splits VisualLineElements as necessary to ensure that the region
can be colored by setting the TextRunProperties of whole elements,
and then calls the action on all elements in the region.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected void ChangeVisualElements( int visualStartColumn, int visualEndColumn, Action<VisualLineElement> action )
Protected Sub ChangeVisualElements ( _ visualStartColumn As Integer, _ visualEndColumn As Integer, _ action As Action(Of VisualLineElement) _ )
protected: void ChangeVisualElements( int visualStartColumn, int visualEndColumn, Action<VisualLineElement^>^ action )
Parameters
- visualStartColumn (Int32)
- Start visual column of the region to change
- visualEndColumn (Int32)
- End visual column of the region to change
- action (Action<(Of <(<'VisualLineElement>)>)>)
- Action that changes an individual VisualLineElement.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238