C# Class SystemEx.Windows.Forms.RichTextBoxExtended

Inheritance: System.Windows.Forms.UserControl, Sekos.ComponentModel.IAutoBinder
Afficher le fichier Open project: pvginkel/SystemEx Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultTextFont System.Drawing.Font

Private Properties

Свойство Type Description
Color_Click void
FontSize_Click void
Font_Click void
InitializeComponent void
RichTextBoxExtended_Leave void
RichTextBoxExtended_Load void
SetDefaultFont void
UpdateToolbarSeperators void
rtb1_LinkClicked void
rtb1_SelectionChanged void
rtb1_TextChanged void
tb1_ButtonClick void

Méthodes publiques

Méthode Description
AutoBindAvailable ( IAgilepagesItem item ) : bool
ChangeFont ( string fontFamily ) : void

Change the richtextbox font for the current selection

ChangeFontColor ( Color newColor ) : void

Change the richtextbox font color for the current selection

ChangeFontSize ( float fontSize ) : void

Change the richtextbox font size for the current selection

ChangeFontStyle ( FontStyle style, bool add ) : void

Change the richtextbox style for the current selection

DoAutoBind ( Sekos item, Sekos specify ) : void
GetFontDetails ( ) : Font

Returns a Font with: 1) The font applying to the entire selection, if none is the default font. 2) The font size applying to the entire selection, if none is the size of the default font. 3) A style containing the attributes that are common to the entire selection, default regular.

RichTextBoxExtended ( ) : System.Collections.Generic
UpdateToolbar ( ) : void

Update the toolbar button statuses

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnStamp ( EventArgs e ) : void

OnStamp event

Private Methods

Méthode Description
Color_Click ( object sender, System e ) : void

Change the richtextbox color

FontSize_Click ( object sender, System e ) : void

Change the richtextbox font size

Font_Click ( object sender, System e ) : void

Change the richtextbox font

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RichTextBoxExtended_Leave ( object sender, System e ) : void
RichTextBoxExtended_Load ( object sender, EventArgs e ) : void
SetDefaultFont ( ) : void
UpdateToolbarSeperators ( ) : void
rtb1_LinkClicked ( object sender, System e ) : void

Starts the default browser if a link is clicked

rtb1_SelectionChanged ( object sender, System e ) : void

Change the toolbar buttons when new text is selected and raise event SelChanged

rtb1_TextChanged ( object sender, System e ) : void
tb1_ButtonClick ( object sender, System e ) : void

Handler for the toolbar button click event

Method Details

AutoBindAvailable() public static méthode

public static AutoBindAvailable ( IAgilepagesItem item ) : bool
item IAgilepagesItem
Résultat bool

ChangeFont() public méthode

Change the richtextbox font for the current selection
public ChangeFont ( string fontFamily ) : void
fontFamily string
Résultat void

ChangeFontColor() public méthode

Change the richtextbox font color for the current selection
public ChangeFontColor ( Color newColor ) : void
newColor Color
Résultat void

ChangeFontSize() public méthode

Change the richtextbox font size for the current selection
public ChangeFontSize ( float fontSize ) : void
fontSize float
Résultat void

ChangeFontStyle() public méthode

Change the richtextbox style for the current selection
public ChangeFontStyle ( FontStyle style, bool add ) : void
style FontStyle
add bool
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DoAutoBind() public méthode

public DoAutoBind ( Sekos item, Sekos specify ) : void
item Sekos
specify Sekos
Résultat void

GetFontDetails() public méthode

Returns a Font with: 1) The font applying to the entire selection, if none is the default font. 2) The font size applying to the entire selection, if none is the size of the default font. 3) A style containing the attributes that are common to the entire selection, default regular.
public GetFontDetails ( ) : Font
Résultat System.Drawing.Font

OnStamp() protected méthode

OnStamp event
protected OnStamp ( EventArgs e ) : void
e System.EventArgs
Résultat void

RichTextBoxExtended() public méthode

public RichTextBoxExtended ( ) : System.Collections.Generic
Résultat System.Collections.Generic

UpdateToolbar() public méthode

Update the toolbar button statuses
public UpdateToolbar ( ) : void
Résultat void

Property Details

DefaultTextFont public_oe static_oe property

public static Font,System.Drawing DefaultTextFont
Résultat System.Drawing.Font