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

Draws a gallery button with specified image.
Наследование: ComponentFactory.Krypton.Toolkit.ViewLeaf, IContentValues
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ForceLeave ( ) : void

Force the mouse to leave the button.

GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be transparent.

GetLongText ( ) : string

Gets the content long text.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

GetShortText ( ) : string

Gets the content short text.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawRibbonGalleryButton ( IPalette palette, PaletteRelativeAlign alignment, PaletteRibbonGalleryButton button, GalleryImages images, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawRibbonGalleryButton class.

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

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Метод Описание
CreateBorderPath ( Rectangle rect ) : GraphicsPath
OnButtonClick ( object sender, MouseEventArgs e ) : 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

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

Force the mouse to leave the button.
public ForceLeave ( ) : void
Результат void

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

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
Результат Image

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

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
Результат Color

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

Gets the content long text.
public GetLongText ( ) : string
Результат string

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

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

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

Gets the content short text.
public GetShortText ( ) : string
Результат string

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

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

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

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

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

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

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

Initialize a new instance of the ViewDrawRibbonGalleryButton class.
public ViewDrawRibbonGalleryButton ( IPalette palette, PaletteRelativeAlign alignment, PaletteRibbonGalleryButton button, GalleryImages images, NeedPaintHandler needPaint ) : System
palette IPalette Reference to inherited palette.
alignment PaletteRelativeAlign Button alignment within gallery.
button PaletteRibbonGalleryButton Button content to display.
images ComponentFactory.Krypton.Toolkit.GalleryImages Button images.
needPaint NeedPaintHandler Paint event delegate.
Результат System