C# Class Radegast.RRichTextBox

Inheritance: Radegast.ExtendedRichTextBox
显示文件 Open project: radegastdev/radegast Class Usage Examples

Public Properties

Property Type Description
CommentColor Color
KeyWords LSLKeyWord>.Dictionary
StringColor Color

Private Properties

Property Type Description
GetScrollPos Win32.POINT
GetSelectionStyle int
InitializeComponent void
ReHighlight string
RtfUnicode string
SetScrollPos void
SetSelectionStyle void
colorTag string
rtfEscaped string
ttTimerElapsed void
validWordChar bool

Public Methods

Method Description
Copy ( ) : void
Cut ( ) : void
GetSelectionLink ( ) : int

Get the link style for the current selection

InsertImage ( Image _image ) : void
InsertLink ( string text ) : void

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

InsertLink ( string text, int position ) : void

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

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.

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.

Paste ( ) : void
Paste ( DataFormats format ) : void
RRichTextBox ( ) : System
RestoreState ( bool saveScrollBars ) : void
SaveState ( bool saveScrollBars ) : void
SetSelectionLink ( bool link ) : void

Set the current selection's link style

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnMouseMove ( MouseEventArgs e ) : void
OnTextChanged ( EventArgs e ) : void

Private Methods

Method Description
GetScrollPos ( ) : Win32.POINT

Sends a win32 message to get the scrollbars' position.

GetSelectionStyle ( UInt32 mask, UInt32 effect ) : int
InitializeComponent ( ) : void
ReHighlight ( string text ) : string
RtfUnicode ( string s ) : string
SetScrollPos ( System.Win32 point ) : void

Sends a win32 message to set scrollbars position.

SetSelectionStyle ( UInt32 mask, UInt32 effect ) : void
colorTag ( Color c, string s ) : string
rtfEscaped ( string s ) : string
ttTimerElapsed ( Object sender ) : void
validWordChar ( char c ) : bool

Method Details

Copy() public method

public Copy ( ) : void
return void

Cut() public method

public Cut ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetSelectionLink() public method

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

InsertImage() public method

public InsertImage ( Image _image ) : void
_image Image
return void

InsertLink() public method

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
return void

InsertLink() public method

Insert a given text at a given position as a link.
public InsertLink ( string text, int position ) : void
text string Text to be inserted
position int Insert position
return void

InsertLink() public method

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
return void

InsertLink() public method

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.
public InsertLink ( string text, string hyperlink, int position ) : void
text string Text to be inserted
hyperlink string Invisible hyperlink string to be inserted
position int Insert position
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnTextChanged() protected method

protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs
return void

Paste() public method

public Paste ( ) : void
return void

Paste() public method

public Paste ( DataFormats format ) : void
format System.Windows.Forms.DataFormats
return void

RRichTextBox() public method

public RRichTextBox ( ) : System
return System

RestoreState() public method

public RestoreState ( bool saveScrollBars ) : void
saveScrollBars bool
return void

SaveState() public method

public SaveState ( bool saveScrollBars ) : void
saveScrollBars bool
return void

SetSelectionLink() public method

Set the current selection's link style
public SetSelectionLink ( bool link ) : void
link bool true: set link style, false: clear link style
return void

Property Details

CommentColor public_oe property

public Color CommentColor
return Color

KeyWords public_oe property

public Dictionary KeyWords
return LSLKeyWord>.Dictionary

StringColor public_oe property

public Color StringColor
return Color