C# Class ZForge.Controls.TreeViewAdv.Tree.NodeControls.BaseTextControl

Inheritance: EditableControl
Datei anzeigen Open project: zhuangyy/Motion

Private Properties

Property Type Description
CreateBrushes void
GetFrush System.Drawing.Brush
SetFormatFlags void

Public Methods

Method Description
Draw ( TreeNodeAdv node, DrawContext context ) : void
GetLabel ( TreeNodeAdv node ) : string
MeasureSize ( TreeNodeAdv node, DrawContext context ) : Size
SetLabel ( TreeNodeAdv node, string value ) : void

Protected Methods

Method Description
BaseTextControl ( ) : System
Dispose ( bool disposing ) : void
FormatLabel ( object obj ) : string
GetDrawingFont ( TreeNodeAdv node, DrawContext context, string label ) : Font
GetLabelSize ( TreeNodeAdv node, DrawContext context ) : Size
GetLabelSize ( TreeNodeAdv node, DrawContext context, string label ) : Size
OnDrawText ( DrawEventArgs args ) : void
SetEditControlProperties ( Control control, TreeNodeAdv node ) : void
ShouldSerializeFont ( ) : bool

Private Methods

Method Description
CreateBrushes ( TreeNodeAdv node, DrawContext context, string text, Brush &backgroundBrush, Color &textColor, Font &font, string &label ) : void
GetFrush ( Color color ) : Brush
SetFormatFlags ( ) : void

Method Details

BaseTextControl() protected method

protected BaseTextControl ( ) : System
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() public method

public Draw ( TreeNodeAdv node, DrawContext context ) : void
node TreeNodeAdv
context DrawContext
return void

FormatLabel() protected method

protected FormatLabel ( object obj ) : string
obj object
return string

GetDrawingFont() protected method

protected GetDrawingFont ( TreeNodeAdv node, DrawContext context, string label ) : Font
node TreeNodeAdv
context DrawContext
label string
return System.Drawing.Font

GetLabel() public method

public GetLabel ( TreeNodeAdv node ) : string
node TreeNodeAdv
return string

GetLabelSize() protected method

protected GetLabelSize ( TreeNodeAdv node, DrawContext context ) : Size
node TreeNodeAdv
context DrawContext
return System.Drawing.Size

GetLabelSize() protected method

protected GetLabelSize ( TreeNodeAdv node, DrawContext context, string label ) : Size
node TreeNodeAdv
context DrawContext
label string
return System.Drawing.Size

MeasureSize() public method

public MeasureSize ( TreeNodeAdv node, DrawContext context ) : Size
node TreeNodeAdv
context DrawContext
return System.Drawing.Size

OnDrawText() protected method

protected OnDrawText ( DrawEventArgs args ) : void
args DrawEventArgs
return void

SetEditControlProperties() protected method

protected SetEditControlProperties ( Control control, TreeNodeAdv node ) : void
control System.Windows.Forms.Control
node TreeNodeAdv
return void

SetLabel() public method

public SetLabel ( TreeNodeAdv node, string value ) : void
node TreeNodeAdv
value string
return void

ShouldSerializeFont() protected method

protected ShouldSerializeFont ( ) : bool
return bool