C# Class ComponentFactory.Krypton.Navigator.ViewDrawNavRibbonTab

Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite, IContentValues, INavCheckItem
Exibir arquivo Open project: Cocotteseb/Krypton Class Usage Examples

Public Methods

Method Description
ButtonSpecFromView ( ViewBase element ) : ButtonSpec

Gets the ButtonSpec associated with the provided item.

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.

PerformClick ( ) : void

Raises the Click event for the button.

Render ( RenderContext context ) : void

Perform a render of the elements.

SetOrientation ( VisualOrientation borderBackOrient, VisualOrientation contentOrient ) : void

Set the orientation of the background/border and content.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawNavRibbonTab ( KryptonNavigator navigator, KryptonPage page ) : System

Initialize a new instance of the ViewDrawNavRibbonTab class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

Raises the NeedPaint event.

OnRightClick ( object sender, MouseEventArgs e ) : void

Processes the RightClick event from the button.

Private Methods

Method Description
CheckPaletteState ( ViewContext context ) : void
OnButtonDragOffset ( object sender, ButtonDragOffsetEventArgs e ) : void
OnButtonDragRectangle ( object sender, ButtonDragRectangleEventArgs e ) : void
OnClick ( object sender, EventArgs e ) : void
OnDragEnd ( object sender, PointEventArgs e ) : void
OnDragMove ( object sender, PointEventArgs e ) : void
OnDragQuit ( object sender, EventArgs e ) : void
OnDragStart ( object sender, DragStartEventCancelArgs e ) : void
StateIndex ( PaletteState state ) : int

Method Details

ButtonSpecFromView() public method

Gets the ButtonSpec associated with the provided item.
public ButtonSpecFromView ( ViewBase element ) : ButtonSpec
element ViewBase Element to search against.
return ComponentFactory.Krypton.Toolkit.ButtonSpec

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

GetImage() public method

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
return Image

GetImageTransparentColor() public method

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
return Color

GetLongText() public method

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

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

GetShortText() public method

Gets the content 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 ( object sender, NeedLayoutEventArgs e ) : void
sender object Source of the event.
e ComponentFactory.Krypton.Toolkit.NeedLayoutEventArgs An NeedLayoutEventArgs containing event data.
return void

OnRightClick() protected method

Processes the RightClick event from the button.
protected OnRightClick ( object sender, MouseEventArgs e ) : void
sender object Source of the event.
e MouseEventArgs An EventArgs containing the event data.
return void

PerformClick() public method

Raises the Click event for the button.
public PerformClick ( ) : void
return void

Render() public method

Perform a render of the elements.
public Render ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
return void

SetOrientation() public method

Set the orientation of the background/border and content.
public SetOrientation ( VisualOrientation borderBackOrient, VisualOrientation contentOrient ) : void
borderBackOrient VisualOrientation Orientation of the button border and background..
contentOrient VisualOrientation Orientation of the button contents.
return void

ToString() public method

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

ViewDrawNavRibbonTab() public method

Initialize a new instance of the ViewDrawNavRibbonTab class.
public ViewDrawNavRibbonTab ( KryptonNavigator navigator, KryptonPage page ) : System
navigator KryptonNavigator Owning navigator instance.
page KryptonPage Page this ribbon tab represents.
return System