AvalonEdit
VisualLineElement Class
NamespacesICSharpCode.AvalonEdit.RenderingVisualLineElement
Represents a visual element in the document.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class VisualLineElement
Public MustInherit Class VisualLineElement
public ref class VisualLineElement abstract
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
VisualLineElement(Int32, Int32)
Creates a new VisualLineElement.

BackgroundBrush
Gets/sets the brush used for the background of this VisualLineElement.

CanSplit
Gets if this VisualLineElement can be split.

CreateTextRun(Int32, ITextRunConstructionContext)
Creates the TextRun for this line element.

DocumentLength
Gets the length of this element in the text document.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetNextCaretPosition(Int32, LogicalDirection, CaretPositioningMode)
Gets the next caret position inside this element.

GetPrecedingText(Int32, ITextRunConstructionContext)
Retrieves the text span immediately before the visual column.

GetRelativeOffset(Int32)
Gets the text offset of a visual column inside this element.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetVisualColumn(Int32)
Gets the visual column of a text location inside this element. The text offset is given relative to the visual line start.

HandlesLineBorders
Gets whether the GetNextCaretPosition(Int32, LogicalDirection, CaretPositioningMode) implementation handles line borders. If this property returns false, the caller of GetNextCaretPosition should handle the line borders (i.e. place caret stops at the start and end of the line). This property has an effect only for VisualLineElements that are at the start or end of a VisualLine.

IsWhitespace(Int32)
Gets whether the specified offset in this element is considered whitespace.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnMouseDown(MouseButtonEventArgs)
Allows the visual line element to handle a mouse event.

OnMouseUp(MouseButtonEventArgs)
Allows the visual line element to handle a mouse event.

OnQueryCursor(QueryCursorEventArgs)
Queries the cursor over the visual line element.

RelativeTextOffset
Gets the text offset where this element starts, relative to the start text offset of the visual line.

Split(Int32, IList<(Of <<'(VisualLineElement>)>>), Int32)
Splits the element.

SplitHelper(VisualLineElement, VisualLineElement, Int32, Int32)
Helper method for splitting this line element into two, correctly updating the VisualLength, DocumentLength, VisualColumn and RelativeTextOffset properties.

TextRunProperties
Gets the text run properties. A unique VisualLineElementTextRunProperties instance is used for each VisualLineElement; colorizing code may assume that modifying the VisualLineElementTextRunProperties will affect only this VisualLineElement.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
VisualColumn
Gets the visual column where this element starts.

VisualLength
Gets the length of this element in visual columns.

Inheritance Hierarchy

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238