C# 클래스 GitForce.RichTextBoxEx

Courtesy of: http://www.codeproject.com/KB/edit/RichTextBoxLinks.aspx
상속: System.Windows.Forms.RichTextBox
파일 보기 프로젝트 열기: gdevic/GitForce

Private Properties

프로퍼티 타입 설명
GetSelectionStyle int
InsertLink void
InsertLink void
SendMessage System.IntPtr
SetSelectionLink void
SetSelectionStyle void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AppendText() 공개 메소드

public AppendText ( string text, Color color ) : void
text string
color Color
리턴 void

GetSelectionLink() 공개 메소드

Get the link style for the current selection
public GetSelectionLink ( ) : int
리턴 int

InsertLink() 공개 메소드

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
리턴 void

InsertLink() 공개 메소드

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
리턴 void

RichTextBoxEx() 공개 메소드

public RichTextBoxEx ( ) : System
리턴 System