C# Class ComponentFactory.Krypton.Toolkit.KryptonWrapLabel

Inheritance: System.Windows.Forms.Label
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
AttachGlobalEvents void
CreateToolStripRenderer System.Windows.Forms.ToolStripRenderer
GetResolvedPalette IPalette
NeedPaint void
NeedPaint void
OnBaseChanged void
OnContextMenuClosed void
OnContextMenuStripOpening void
OnGlobalPaletteChanged void
OnKryptonContextMenuDisposed void
OnPaletteNeedPaint void
OnUserPreferenceChanged void
ResetLabelStyle void
SetPalette void
ShouldSerializeLabelStyle bool
ShouldSerializePaletteMode bool
ShouldSerializeStateCommon bool
ShouldSerializeStateDisabled bool
ShouldSerializeStateNormal bool
UnattachGlobalEvents void
UpdateFont void

Public Methods

Method Description
KryptonWrapLabel ( ) : System

Initialize a new instance of the KryptonWrapLabel class.

ResetPalette ( ) : void

Resets the Palette property to its default value.

ResetPaletteMode ( ) : void

Resets the PaletteMode property to its default value.

Protected Methods

Method Description
ContextMenuClosed ( ) : void

Called when a context menu has just been closed.

CreateRedirector ( ) : PaletteRedirect

Create the redirector instance.

Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event.

OnPaintBackground ( PaintEventArgs pevent ) : void

Raises the PaintBackground event.

OnPaletteChanged ( EventArgs e ) : void

Raises the PaletteChanged event.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Processes a command key.

SetLabelStyle ( LabelStyle style ) : void

Update the view elements based on the requested label style.

UpdateGlobalEvents ( bool attach ) : void

Update global event attachments.

WndProc ( Message &m ) : void

Process Windows-based messages.

Private Methods

Method Description
AttachGlobalEvents ( ) : void
CreateToolStripRenderer ( ) : System.Windows.Forms.ToolStripRenderer
GetResolvedPalette ( ) : IPalette
NeedPaint ( NeedLayoutEventArgs e ) : void
NeedPaint ( bool layout ) : void
OnBaseChanged ( object sender, EventArgs e ) : void
OnContextMenuClosed ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void
OnContextMenuStripOpening ( object sender, CancelEventArgs e ) : void
OnGlobalPaletteChanged ( object sender, EventArgs e ) : void
OnKryptonContextMenuDisposed ( object sender, EventArgs e ) : void
OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
OnUserPreferenceChanged ( object sender, Microsoft.Win32.UserPreferenceChangedEventArgs e ) : void
ResetLabelStyle ( ) : void
SetPalette ( IPalette palette ) : void
ShouldSerializeLabelStyle ( ) : bool
ShouldSerializePaletteMode ( ) : bool
ShouldSerializeStateCommon ( ) : bool
ShouldSerializeStateDisabled ( ) : bool
ShouldSerializeStateNormal ( ) : bool
UnattachGlobalEvents ( ) : void
UpdateFont ( ) : void

Method Details

ContextMenuClosed() protected method

Called when a context menu has just been closed.
protected ContextMenuClosed ( ) : void
return void

CreateRedirector() protected method

Create the redirector instance.
protected CreateRedirector ( ) : PaletteRedirect
return PaletteRedirect

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

KryptonWrapLabel() public method

Initialize a new instance of the KryptonWrapLabel class.
public KryptonWrapLabel ( ) : System
return System

OnPaint() protected method

Raises the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs An EventArgs containing the event data.
return void

OnPaintBackground() protected method

Raises the PaintBackground event.
protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs An PaintEventArgs containing the event data.
return void

OnPaletteChanged() protected method

Raises the PaletteChanged event.
protected OnPaletteChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

ProcessCmdKey() protected method

Processes a command key.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message A Message, passed by reference, that represents the window message to process.
keyData Keys One of the Keys values that represents the key to process.
return bool

ResetPalette() public method

Resets the Palette property to its default value.
public ResetPalette ( ) : void
return void

ResetPaletteMode() public method

Resets the PaletteMode property to its default value.
public ResetPaletteMode ( ) : void
return void

SetLabelStyle() protected method

Update the view elements based on the requested label style.
protected SetLabelStyle ( LabelStyle style ) : void
style LabelStyle New label style.
return void

UpdateGlobalEvents() protected method

Update global event attachments.
protected UpdateGlobalEvents ( bool attach ) : void
attach bool True if attaching; otherwise false.
return void

WndProc() protected method

Process Windows-based messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows-based message.
return void