Constructors

GH_RibbonTab

#
Default constructor.
public GH_RibbonTab(
owner,
Owner control, can be NULL, but you must set it prior to calling any UI methods.
name
Name of the tab.
)

Fields

Region

Represents the entire region taken up by this object.
public Rectangle Region
inherited fromGH_RibbonContentBase

Properties

ClientRegion

Gets the Client region of the layout. The client region as defined as the entire region minus the margin and the padding.
public Rectangle ClientRegion { get; set; }
inherited fromGH_RibbonContentBase

ContentRegion

Gets or sets the Content region of the layout. The content region as defined as the entire region minus the margin.
public Rectangle ContentRegion { get; set; }
inherited fromGH_RibbonContentBase

DisplayStyle

#
Gets or sets the display style of a tab. This style is set by the ribbon control during layout, do not set it yourself.
public GH_TabDisplay DisplayStyle { get; set; }

Grip

#
Gets or sets the grip region for this tab.
public Rectangle Grip { get; set; }
Remarks: The grip region is the clickable region around the name.

HasIcon

#
Gets whether this tab has an icon associated with it.
public bool HasIcon { get; }

Icon

#
Gets the tab icon (might not exist)
public Bitmap Icon { get; }

Margin

public Padding Margin { get; set; }
inherited fromGH_RibbonContentBase

NameFull

#
Gets the full name of the tab.
public string NameFull { get; }

NameShort

#
Gets the abbreviated name of the tab.
public string NameShort { get; }

NameSymbol

#
Gets the single char name of the tab.
public string NameSymbol { get; }

Owner

#
Gets the owner control for this tab.
public GH_Ribbon Owner { get; }
Remarks: If you supply a NULL value, you cannot call any interface methods
The GH_RibbonControl owner

Padding

public Padding Padding { get; set; }
inherited fromGH_RibbonContentBase

Panels

#
Gets the internal collection of panels.
public List<GH_RibbonPanel> Panels { get; }

Visible

Gets or sets visibility of this control. Typically visibility affects drawing and mouse interaction
public bool Visible { get; set; }
inherited fromGH_RibbonContentBase

Methods

Contains

Tests to see if the given point is considered to be 'on' the control. By default, the content region of the control is tested, but derived classes can override this behaviour.
public virtual bool Contains(
Point
pt
Point to test for
)
inherited fromGH_RibbonContentBase

DisplayTooltip

#
public void DisplayTooltip()
DisplayTooltip

EnsurePanel

#
Ensures a panel with a certain name exists.
public GH_RibbonPanel EnsurePanel(
name
)

MouseClick

#
MouseClick

MouseDoubleClick

#
public GH_RibbonMouseEvent MouseDoubleClick()
MouseDoubleClick

MouseDown

#
MouseDown

MouseMove

#
MouseMove

MouseUp

#
MouseUp

PerformLayout

#
Performs layout logic of all panels
public override void PerformLayout()

RenderTab

#
public void RenderTab()