C# Class ICSharpCode.AvalonEdit.Rendering.LinkElementGenerator

Detects hyperlinks and makes them clickable.
This element generator can be easily enabled and configured using the TextEditorOptions.
Inheritance: ICSharpCode.AvalonEdit.Rendering.VisualLineElementGenerator, IBuiltinElementGenerator
Show file Open project: kjk/kjkpub

Public Methods

Method Description
ConstructElement ( int offset ) : ICSharpCode.AvalonEdit.Rendering.VisualLineElement
GetFirstInterestedOffset ( int startOffset ) : int
LinkElementGenerator ( ) : System

Creates a new LinkElementGenerator.

Protected Methods

Method Description
GetUriFromMatch ( Match match ) : Uri

Fetches the URI from the regex match.

LinkElementGenerator ( Regex regex ) : System

Creates a new LinkElementGenerator using the specified regex.

Private Methods

Method Description
GetMatch ( int startOffset ) : Match
IBuiltinElementGenerator ( TextEditorOptions options ) : void

Method Details

ConstructElement() public method

public ConstructElement ( int offset ) : ICSharpCode.AvalonEdit.Rendering.VisualLineElement
offset int
return ICSharpCode.AvalonEdit.Rendering.VisualLineElement

GetFirstInterestedOffset() public method

public GetFirstInterestedOffset ( int startOffset ) : int
startOffset int
return int

GetUriFromMatch() protected method

Fetches the URI from the regex match.
protected GetUriFromMatch ( Match match ) : Uri
match System.Text.RegularExpressions.Match
return System.Uri

LinkElementGenerator() public method

Creates a new LinkElementGenerator.
public LinkElementGenerator ( ) : System
return System

LinkElementGenerator() protected method

Creates a new LinkElementGenerator using the specified regex.
protected LinkElementGenerator ( Regex regex ) : System
regex System.Text.RegularExpressions.Regex
return System