C# Класс ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroup

Draws an individual RibbonGroup.
Наследование: ComponentFactory.Krypton.Toolkit.ViewComposite, IRibbonViewGroupSize
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetFirstFocusItem ( ) : ViewBase

Gets the first focus item from the group.

GetGroupKeyTips ( KeyTipInfoList keyTipList ) : void

Gets the array of group level key tips.

GetLastFocusItem ( ) : ViewBase

Gets the last focus item from the group.

GetNextFocusItem ( ViewBase current, bool &matched ) : ViewBase

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

GetPossibleSizes ( ViewLayoutContext context ) : ComponentFactory.Krypton.Ribbon.GroupSizeWidth[]

Get an array of available widths for the group with associated sizing values.

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.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

PerformNeedPaint ( bool needLayout, Rectangle invalidRect ) : void

Fires the NeedPaint event.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

SetSolutionSize ( ItemSizeWidth size ) : void

Update the group with the provided sizing solution.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawRibbonGroup ( KryptonRibbon ribbon, KryptonRibbonGroup ribbonGroup, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawRibbonGroup class.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateCollapsedView ( ) : void
CreateNormalView ( ) : void
DisposeMementos ( ) : void
OnCollapsedClick ( object sender, MouseEventArgs e ) : void
OnContextClick ( object sender, MouseEventArgs e ) : void
OnGroupPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnVisualPopupGroupDisposed ( object sender, EventArgs e ) : void
RenderCollapsedBefore ( RenderContext context ) : void
RenderCollapsedPressedBefore ( RenderContext context ) : void
RenderNormalBefore ( RenderContext context ) : void
UpdateShapeValues ( ) : void

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetFirstFocusItem() публичный Метод

Gets the first focus item from the group.
public GetFirstFocusItem ( ) : ViewBase
Результат ViewBase

GetGroupKeyTips() публичный Метод

Gets the array of group level key tips.
public GetGroupKeyTips ( KeyTipInfoList keyTipList ) : void
keyTipList KeyTipInfoList List to add new entries into.
Результат void

GetLastFocusItem() публичный Метод

Gets the last focus item from the group.
public GetLastFocusItem ( ) : ViewBase
Результат ViewBase

GetNextFocusItem() публичный Метод

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.
Результат ViewBase

GetPossibleSizes() публичный Метод

Get an array of available widths for the group with associated sizing values.
public GetPossibleSizes ( ViewLayoutContext context ) : ComponentFactory.Krypton.Ribbon.GroupSizeWidth[]
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Context used to calculate the sizes.
Результат ComponentFactory.Krypton.Ribbon.GroupSizeWidth[]

GetPreferredSize() публичный Метод

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
Результат System.Drawing.Size

GetPreviousFocusItem() публичный Метод

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.
Результат ViewBase

Layout() публичный Метод

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
Результат void

OnNeedPaint() защищенный Метод

Raises the NeedPaint event.
protected OnNeedPaint ( bool needLayout ) : void
needLayout bool Does the palette change require a layout.
Результат void

OnNeedPaint() защищенный Метод

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.
Результат void

PerformNeedPaint() публичный Метод

Fires the NeedPaint event.
public PerformNeedPaint ( bool needLayout, Rectangle invalidRect ) : void
needLayout bool Does the palette change require a layout.
invalidRect System.Drawing.Rectangle Rectangle to invalidate.
Результат void

RenderBefore() публичный Метод

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
Результат void

SetSolutionSize() публичный Метод

Update the group with the provided sizing solution.
public SetSolutionSize ( ItemSizeWidth size ) : void
size ItemSizeWidth Solution size.
Результат void

ToString() публичный Метод

Obtains the String representation of this instance.
public ToString ( ) : string
Результат string

ViewDrawRibbonGroup() публичный Метод

Initialize a new instance of the ViewDrawRibbonGroup class.
public ViewDrawRibbonGroup ( KryptonRibbon ribbon, KryptonRibbonGroup ribbonGroup, NeedPaintHandler needPaint ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
ribbonGroup KryptonRibbonGroup Reference to ribbon group this represents.
needPaint NeedPaintHandler Delegate for notifying paint requests.
Результат System