C# Class ICSharpCode.AvalonEdit.Rendering.VisualLineLinkText

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

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Private Methods

Méthode Description
LinkIsClickable ( ) : bool
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

CreateInstance() protected méthode

protected CreateInstance ( int length ) : ICSharpCode.AvalonEdit.Rendering.VisualLineText
length int
Résultat ICSharpCode.AvalonEdit.Rendering.VisualLineText

CreateTextRun() public méthode

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

OnQueryCursor() protected méthode

protected OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void
e System.Windows.Input.QueryCursorEventArgs
Résultat void

VisualLineLinkText() public méthode

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
Résultat System