C# Class ICSharpCode.AvalonEdit.Rendering.VisualLineLinkText

VisualLineElement that represents a piece of text and is a clickable link.
Inheritance: ICSharpCode.AvalonEdit.Rendering.VisualLineText
Show file Open project: kjk/kjkpub Class Usage Examples

Public Methods

Method Description
CreateTextRun ( int startVisualColumn, ITextRunConstructionContext context ) : System.Windows.Media.TextFormatting.TextRun
VisualLineLinkText ( VisualLine parentVisualLine, int length ) : System

Creates a visual line text element with the specified length. It uses the ITextRunConstructionContext.VisualLine and its VisualLineElement.RelativeTextOffset to find the actual text string.

Protected Methods

Method Description
CreateInstance ( int length ) : ICSharpCode.AvalonEdit.Rendering.VisualLineText
OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void

Private Methods

Method Description
LinkIsClickable ( ) : bool
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

CreateInstance() protected method

protected CreateInstance ( int length ) : ICSharpCode.AvalonEdit.Rendering.VisualLineText
length int
return ICSharpCode.AvalonEdit.Rendering.VisualLineText

CreateTextRun() public method

public CreateTextRun ( int startVisualColumn, ITextRunConstructionContext context ) : System.Windows.Media.TextFormatting.TextRun
startVisualColumn int
context ITextRunConstructionContext
return System.Windows.Media.TextFormatting.TextRun

OnQueryCursor() protected method

protected OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void
e System.Windows.Input.QueryCursorEventArgs
return void

VisualLineLinkText() public method

Creates a visual line text element with the specified length. It uses the ITextRunConstructionContext.VisualLine and its VisualLineElement.RelativeTextOffset to find the actual text string.
public VisualLineLinkText ( VisualLine parentVisualLine, int length ) : System
parentVisualLine VisualLine
length int
return System