C# Class TpTrayUtility.Components.TpRichText

Inheritance: System.Windows.Forms.RichTextBox
Show file Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Public Properties

Property Type Description
FinishEditingHandler EventHandler

Public Methods

Method Description
GetDefaultStyle ( FontFamily fontFamily ) : FontStyle
SetFontToSelection ( FontFamily family, FontStyle style ) : void
SetFontToSelection ( FontStyle style ) : void
SetFontToSelection ( float size ) : void
TpRichText ( ) : System

Protected Methods

Method Description
OnKeyDown ( KeyEventArgs e ) : void
OnSelectionChanged ( EventArgs e ) : void

Private Methods

Method Description
FinishEditing ( ) : void
GetFont ( FontFamily family, FontStyle style, float size ) : Font
SetFont ( Func getStyle, Func getFamily, Func getSize ) : void
SetFontToSelection ( Func getFamily, Func getSize, Func getStyle ) : void

Method Details

GetDefaultStyle() public static method

public static GetDefaultStyle ( FontFamily fontFamily ) : FontStyle
fontFamily System.Drawing.FontFamily
return FontStyle

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnSelectionChanged() protected method

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

SetFontToSelection() public method

public SetFontToSelection ( FontFamily family, FontStyle style ) : void
family System.Drawing.FontFamily
style FontStyle
return void

SetFontToSelection() public method

public SetFontToSelection ( FontStyle style ) : void
style FontStyle
return void

SetFontToSelection() public method

public SetFontToSelection ( float size ) : void
size float
return void

TpRichText() public method

public TpRichText ( ) : System
return System

Property Details

FinishEditingHandler public property

public EventHandler FinishEditingHandler
return EventHandler