C# Class ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupCheckBox

Draws a ribbon group check box.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite, IRibbonViewGroupItemView, IContentValues
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetFirstFocusItem ( ) : ViewBase

Gets the first focus item from the item.

GetGroupKeyTips ( KeyTipInfoList keyTipList, int lineHint ) : void

Gets the array of group level key tips.

GetImage ( PaletteState state ) : Image

Gets the image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image transparent color.

GetLastFocusItem ( ) : ViewBase

Gets the last focus item from the item.

GetLongText ( ) : string

Gets the long text.

GetNextFocusItem ( ViewBase current, bool &matched ) : ViewBase

Gets the next focus item based on the current item as provided.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

GetPreviousFocusItem ( ViewBase current, bool &matched ) : ViewBase

Gets the previous focus item based on the current item as provided.

GetShortText ( ) : string

Gets the short text.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

ResetGroupItemSize ( ) : void

Reset the group item size to the item definition.

SetGroupItemSize ( GroupItemSize size ) : void

Override the group item size if possible.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawRibbonGroupCheckBox ( KryptonRibbon ribbon, KryptonRibbonGroupCheckBox ribbonCheckBox, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawRibbonGroupCheckBox class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnNeedPaint ( bool needLayout ) : void

Raises the NeedPaint event.

OnNeedPaint ( bool needLayout, Rectangle invalidRect ) : void

Raises the NeedPaint event.

Private Methods

Method Description
ActionFinishedLarge ( object sender, EventArgs e ) : void
ActionFinishedMediumSmall ( object sender, EventArgs e ) : void
CreateLargeCheckBoxView ( ) : void
CreateMediumSmallCheckBoxView ( ) : void
DefineRootView ( ViewBase view ) : void
OnCheckBoxPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnContextClick ( object sender, MouseEventArgs e ) : void
OnLargeCheckBoxClick ( object sender, EventArgs e ) : void
OnMediumSmallCheckBoxClick ( object sender, EventArgs e ) : void
UpdateCheckState ( ) : void
UpdateEnabledState ( ) : void
UpdateItemSizeState ( ) : void
UpdateItemSizeState ( GroupItemSize size ) : void

Method Details

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

GetFirstFocusItem() public method

Gets the first focus item from the item.
public GetFirstFocusItem ( ) : ViewBase
return ViewBase

GetGroupKeyTips() public method

Gets the array of group level key tips.
public GetGroupKeyTips ( KeyTipInfoList keyTipList, int lineHint ) : void
keyTipList KeyTipInfoList List to add new entries into.
lineHint int Provide hint to item about its location.
return void

GetImage() public method

Gets the image.
public GetImage ( PaletteState state ) : Image
state PaletteState
return Image

GetImageTransparentColor() public method

Gets the image transparent color.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState
return Color

GetLastFocusItem() public method

Gets the last focus item from the item.
public GetLastFocusItem ( ) : ViewBase
return ViewBase

GetLongText() public method

Gets the long text.
public GetLongText ( ) : string
return string

GetNextFocusItem() public method

Gets the next focus item based on the current item as provided.
public GetNextFocusItem ( ViewBase current, bool &matched ) : ViewBase
current ViewBase The view that is currently focused.
matched bool Has the current focus item been matched yet.
return ViewBase

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
return System.Drawing.Size

GetPreviousFocusItem() public method

Gets the previous focus item based on the current item as provided.
public GetPreviousFocusItem ( ViewBase current, bool &matched ) : ViewBase
current ViewBase The view that is currently focused.
matched bool Has the current focus item been matched yet.
return ViewBase

GetShortText() public method

Gets the short text.
public GetShortText ( ) : string
return string

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
return void

OnNeedPaint() protected method

Raises the NeedPaint event.
protected OnNeedPaint ( bool needLayout ) : void
needLayout bool Does the palette change require a layout.
return void

OnNeedPaint() protected method

Raises the NeedPaint event.
protected OnNeedPaint ( bool needLayout, Rectangle invalidRect ) : void
needLayout bool Does the palette change require a layout.
invalidRect System.Drawing.Rectangle Rectangle to invalidate.
return void

ResetGroupItemSize() public method

Reset the group item size to the item definition.
public ResetGroupItemSize ( ) : void
return void

SetGroupItemSize() public method

Override the group item size if possible.
public SetGroupItemSize ( GroupItemSize size ) : void
size GroupItemSize New size to use.
return void

ToString() public method

Obtains the String representation of this instance.
public ToString ( ) : string
return string

ViewDrawRibbonGroupCheckBox() public method

Initialize a new instance of the ViewDrawRibbonGroupCheckBox class.
public ViewDrawRibbonGroupCheckBox ( KryptonRibbon ribbon, KryptonRibbonGroupCheckBox ribbonCheckBox, NeedPaintHandler needPaint ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
ribbonCheckBox KryptonRibbonGroupCheckBox Reference to source check box definition.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System