C# Class SystemEx.Windows.Forms.RichTextBoxExtended

Inheritance: System.Windows.Forms.UserControl, Sekos.ComponentModel.IAutoBinder
显示文件 Open project: pvginkel/SystemEx Class Usage Examples

Public Properties

Property Type Description
DefaultTextFont System.Drawing.Font

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnStamp ( EventArgs e ) : void

OnStamp event

Private Methods

Method 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 method

public static AutoBindAvailable ( IAgilepagesItem item ) : bool
item IAgilepagesItem
return bool

ChangeFont() public method

Change the richtextbox font for the current selection
public ChangeFont ( string fontFamily ) : void
fontFamily string
return void

ChangeFontColor() public method

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

ChangeFontSize() public method

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

ChangeFontStyle() public method

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

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

DoAutoBind() public method

public DoAutoBind ( Sekos item, Sekos specify ) : void
item Sekos
specify Sekos
return void

GetFontDetails() public method

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
return System.Drawing.Font

OnStamp() protected method

OnStamp event
protected OnStamp ( EventArgs e ) : void
e System.EventArgs
return void

RichTextBoxExtended() public method

public RichTextBoxExtended ( ) : System.Collections.Generic
return System.Collections.Generic

UpdateToolbar() public method

Update the toolbar button statuses
public UpdateToolbar ( ) : void
return void

Property Details

DefaultTextFont public_oe static_oe property

public static Font,System.Drawing DefaultTextFont
return System.Drawing.Font