C# Class GitForce.RichTextBoxEx

Courtesy of: http://www.codeproject.com/KB/edit/RichTextBoxLinks.aspx
Inheritance: System.Windows.Forms.RichTextBox
Afficher le fichier Open project: gdevic/GitForce

Private Properties

Свойство Type Description
GetSelectionStyle int
InsertLink void
InsertLink void
SendMessage System.IntPtr
SetSelectionLink void
SetSelectionStyle void

Méthodes publiques

Méthode Description
AppendText ( string text, Color color ) : void
GetSelectionLink ( ) : int

Get the link style for the current selection

InsertLink ( string text ) : void

Insert a given text as a link into the RichTextBox at the current insert position.

InsertLink ( string text, string hyperlink ) : void

Insert a given text at at the current input position as a link. The link text is followed by a hash (#) and the given hyperlink text, both of them invisible. When clicked on, the whole link text and hyperlink string are given in the LinkClickedEventArgs.

RichTextBoxEx ( ) : System

Private Methods

Méthode Description
GetSelectionStyle ( UInt32 mask, UInt32 effect ) : int
InsertLink ( string text, int position ) : void

Insert a given text at a given position as a link.

InsertLink ( string text, string hyperlink, int position ) : void

Insert a given text at a given position as a link. The link text is followed by a hash (#) and the given hyperlink text, both of them invisible. When clicked on, the whole link text and hyperlink string are given in the LinkClickedEventArgs.

SendMessage ( IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SetSelectionLink ( bool link ) : void

Set the current selection's link style

SetSelectionStyle ( UInt32 mask, UInt32 effect ) : void

Method Details

AppendText() public méthode

public AppendText ( string text, Color color ) : void
text string
color Color
Résultat void

GetSelectionLink() public méthode

Get the link style for the current selection
public GetSelectionLink ( ) : int
Résultat int

InsertLink() public méthode

Insert a given text as a link into the RichTextBox at the current insert position.
public InsertLink ( string text ) : void
text string Text to be inserted
Résultat void

InsertLink() public méthode

Insert a given text at at the current input position as a link. The link text is followed by a hash (#) and the given hyperlink text, both of them invisible. When clicked on, the whole link text and hyperlink string are given in the LinkClickedEventArgs.
public InsertLink ( string text, string hyperlink ) : void
text string Text to be inserted
hyperlink string Invisible hyperlink string to be inserted
Résultat void

RichTextBoxEx() public méthode

public RichTextBoxEx ( ) : System
Résultat System