C# Класс Radegast.RRichTextBox

Наследование: Radegast.ExtendedRichTextBox
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CommentColor Color
KeyWords LSLKeyWord>.Dictionary
StringColor Color

Private Properties

Свойство Тип Описание
GetScrollPos Win32.POINT
GetSelectionStyle int
InitializeComponent void
ReHighlight string
RtfUnicode string
SetScrollPos void
SetSelectionStyle void
colorTag string
rtfEscaped string
ttTimerElapsed void
validWordChar bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Приватные методы

Метод Описание
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

Описание методов

Copy() публичный Метод

public Copy ( ) : void
Результат void

Cut() публичный Метод

public Cut ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetSelectionLink() публичный Метод

Get the link style for the current selection
public GetSelectionLink ( ) : int
Результат int

InsertImage() публичный Метод

public InsertImage ( Image _image ) : void
_image Image
Результат void

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 a given position as a link.
public InsertLink ( string text, int position ) : void
text string Text to be inserted
position int Insert position
Результат 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

InsertLink() публичный Метод

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
Результат void

OnMouseMove() защищенный Метод

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnTextChanged() защищенный Метод

protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

Paste() публичный Метод

public Paste ( ) : void
Результат void

Paste() публичный Метод

public Paste ( DataFormats format ) : void
format System.Windows.Forms.DataFormats
Результат void

RRichTextBox() публичный Метод

public RRichTextBox ( ) : System
Результат System

RestoreState() публичный Метод

public RestoreState ( bool saveScrollBars ) : void
saveScrollBars bool
Результат void

SaveState() публичный Метод

public SaveState ( bool saveScrollBars ) : void
saveScrollBars bool
Результат void

SetSelectionLink() публичный Метод

Set the current selection's link style
public SetSelectionLink ( bool link ) : void
link bool true: set link style, false: clear link style
Результат void

Описание свойств

CommentColor публичное свойство

public Color CommentColor
Результат Color

KeyWords публичное свойство

public Dictionary KeyWords
Результат LSLKeyWord>.Dictionary

StringColor публичное свойство

public Color StringColor
Результат Color