C# Class System.Windows.Forms.RibbonCaptionButton

Minimise, Maximise, Restore and Close buttons in the Ribbon caption area
Inheritance: System.Windows.Forms.RibbonButton
Show file Open project: pjfwork-dwarf-fortress Class Usage Examples

Public Methods

Method Description
GetCharFor ( CaptionButton type ) : string

Gets the character to render the specified button type

OnClick ( EventArgs e ) : void
RibbonCaptionButton ( CaptionButton buttonType ) : System

Creates a new CaptionButton

Private Methods

Method Description
OnGetTextBounds ( RibbonElementSizeMode sMode, Rectangle bounds ) : Rectangle
SetCaptionButtonType ( CaptionButton buttonType ) : void

Sets value to the type of caption button

Method Details

GetCharFor() public static method

Gets the character to render the specified button type
public static GetCharFor ( CaptionButton type ) : string
type CaptionButton type of button
return string

OnClick() public method

public OnClick ( EventArgs e ) : void
e EventArgs
return void

RibbonCaptionButton() public method

Creates a new CaptionButton
public RibbonCaptionButton ( CaptionButton buttonType ) : System
buttonType CaptionButton
return System