AvalonEdit
LinkElementGenerator Class
NamespacesICSharpCode.AvalonEdit.RenderingLinkElementGenerator
Detects hyperlinks and makes them clickable.
Declaration Syntax
C#Visual BasicVisual C++
public class LinkElementGenerator : VisualLineElementGenerator, 
	IBuiltinElementGenerator
Public Class LinkElementGenerator _
	Inherits VisualLineElementGenerator _
	Implements IBuiltinElementGenerator
public ref class LinkElementGenerator : public VisualLineElementGenerator, 
	IBuiltinElementGenerator
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
LinkElementGenerator()()()()
Creates a new LinkElementGenerator.

LinkElementGenerator(Regex)
Creates a new LinkElementGenerator using the specified regex.

ConstructElement(Int32)
Constructs an element at the specified offset. May return null if no element should be constructed.
(Overrides VisualLineElementGenerator.ConstructElement(Int32).)
ConstructElementFromMatch(Match)
Constructs a VisualLineElement that replaces the matched text. The default implementation will create a VisualLineLinkText based on the URI provided by GetUriFromMatch(Match).

CurrentContext
Gets the text run construction context.
(Inherited from VisualLineElementGenerator.)
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.)
FinishGeneration()()()()
De-initializes the generator.
(Inherited from VisualLineElementGenerator.)
GetFirstInterestedOffset(Int32)
Gets the first offset >= startOffset where the generator wants to construct an element. Return -1 to signal no interest.
(Overrides VisualLineElementGenerator.GetFirstInterestedOffset(Int32).)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetUriFromMatch(Match)
Fetches the URI from the regex match. Returns null if the URI format is invalid.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
RequireControlModifierForClick
Gets/Sets whether the user needs to press Control to click the link. The default value is true.

StartGeneration(ITextRunConstructionContext)
Initializes the generator for the ITextRunConstructionContext
(Inherited from VisualLineElementGenerator.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
This element generator can be easily enabled and configured using the TextEditorOptions.
Inheritance Hierarchy
Object
VisualLineElementGenerator
 LinkElementGenerator

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