AvalonEdit
VisualLineText Class
NamespacesICSharpCode.AvalonEdit.RenderingVisualLineText
VisualLineElement that represents a piece of text.
Declaration Syntax
C#Visual BasicVisual C++
public class VisualLineText : VisualLineElement
Public Class VisualLineText _
	Inherits VisualLineElement
public ref class VisualLineText : public VisualLineElement
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
VisualLineText(VisualLine, Int32)
Creates a visual line text element with the specified length. It uses the VisualLine and its RelativeTextOffset to find the actual text string.

BackgroundBrush
Gets/sets the brush used for the background of this VisualLineElement.
(Inherited from VisualLineElement.)
CanSplit
Gets if this VisualLineElement can be split.
(Overrides VisualLineElement.CanSplit.)
CreateInstance(Int32)
Override this method to control the type of new VisualLineText instances when the visual line is split due to syntax highlighting.

CreateTextRun(Int32, ITextRunConstructionContext)
Creates the TextRun for this line element.
(Overrides VisualLineElement.CreateTextRun(Int32, ITextRunConstructionContext).)
DocumentLength
Gets the length of this element in the text document.
(Inherited from VisualLineElement.)
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.
(Overrides VisualLineElement.GetNextCaretPosition(Int32, LogicalDirection, CaretPositioningMode).)
GetPrecedingText(Int32, ITextRunConstructionContext)
Retrieves the text span immediately before the visual column.
(Overrides VisualLineElement.GetPrecedingText(Int32, ITextRunConstructionContext).)
GetRelativeOffset(Int32)
Gets the text offset of a visual column inside this element.
(Overrides VisualLineElement.GetRelativeOffset(Int32).)
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.
(Overrides VisualLineElement.GetVisualColumn(Int32).)
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.
(Inherited from VisualLineElement.)
IsWhitespace(Int32)
Gets whether the specified offset in this element is considered whitespace.
(Overrides VisualLineElement.IsWhitespace(Int32).)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnMouseDown(MouseButtonEventArgs)
Allows the visual line element to handle a mouse event.
(Inherited from VisualLineElement.)
OnMouseUp(MouseButtonEventArgs)
Allows the visual line element to handle a mouse event.
(Inherited from VisualLineElement.)
OnQueryCursor(QueryCursorEventArgs)
Queries the cursor over the visual line element.
(Inherited from VisualLineElement.)
ParentVisualLine
Gets the parent visual line.

RelativeTextOffset
Gets the text offset where this element starts, relative to the start text offset of the visual line.
(Inherited from VisualLineElement.)
Split(Int32, IList<(Of <<'(VisualLineElement>)>>), Int32)
Splits the element.
(Overrides VisualLineElement.Split(Int32, IList<(Of <<'(VisualLineElement>)>>), Int32).)
SplitHelper(VisualLineElement, VisualLineElement, Int32, Int32)
Helper method for splitting this line element into two, correctly updating the VisualLength, DocumentLength, VisualColumn and RelativeTextOffset properties.
(Inherited from VisualLineElement.)
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.
(Inherited from VisualLineElement.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
VisualColumn
Gets the visual column where this element starts.
(Inherited from VisualLineElement.)
VisualLength
Gets the length of this element in visual columns.
(Inherited from VisualLineElement.)
Inheritance Hierarchy

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