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



IconMemberDescription
VisualLineLinkText(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.
(Inherited from VisualLineText.)
CreateInstance(Int32)
Override this method to control the type of new VisualLineText instances when the visual line is split due to syntax highlighting.
(Overrides VisualLineText.CreateInstance(Int32).)
CreateTextRun(Int32, ITextRunConstructionContext)
Creates the TextRun for this line element.
(Overrides VisualLineText.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.
(Inherited from VisualLineText.)
GetPrecedingText(Int32, ITextRunConstructionContext)
Retrieves the text span immediately before the visual column.
(Inherited from VisualLineText.)
GetRelativeOffset(Int32)
Gets the text offset of a visual column inside this element.
(Inherited from VisualLineText.)
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.
(Inherited from VisualLineText.)
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.
(Inherited from VisualLineText.)
LinkIsClickable()()()()
Gets whether the link is currently clickable.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NavigateUri
Gets/Sets the URL that is navigated to when the link is clicked.

OnMouseDown(MouseButtonEventArgs)
Allows the visual line element to handle a mouse event.
(Overrides VisualLineElement.OnMouseDown(MouseButtonEventArgs).)
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.
(Overrides VisualLineElement.OnQueryCursor(QueryCursorEventArgs).)
ParentVisualLine
Gets the parent visual line.
(Inherited from VisualLineText.)
RelativeTextOffset
Gets the text offset where this element starts, relative to the start text offset of the visual line.
(Inherited from VisualLineElement.)
RequireControlModifierForClick
Gets/Sets whether the user needs to press Control to click the link. The default value is true.

Split(Int32, IList<(Of <<'(VisualLineElement>)>>), Int32)
Splits the element.
(Inherited from VisualLineText.)
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.)
TargetName
Gets/Sets the window name where the URL will be opened.

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