[]
        
(Showing Draft Content)

C1.Win.C1Command.C1CommandMenu

C1CommandMenu Class

Summary description for C1CommandMenu.

Implements
ISupportSuperTooltip
Namespace: C1.Win.C1Command
Assembly: C1.Win.C1Command.4.8.dll
Syntax
[C1Description("C1CommandMenu", "Represents a command with a submenu (collection of command links).")]
public class C1CommandMenu : C1Command, IComponent, IDisposable, ISupportSuperTooltip

Constructors

Name Description
C1CommandMenu()

Initializes a new instance of the C1CommandMenu class.

Fields

Name Description
m_backColor

This member is for internal use only.

m_backHiColor

This member is for internal use only.

m_backgroundImage

This member is for internal use only.

m_foreColor

This member is for internal use only.

m_foreHiColor

This member is for internal use only.

m_imageLayout

The background image layout in the menu.

m_masterForm

This member is for internal use only.

Properties

Name Description
BackColor

Gets or sets the base background color of the menu.

BackHiColor

Gets or sets the base background color of the highlighted item.

BackgroundImage

Gets or sets the background image displayed in the menu.

BackgroundImageLayout

Gets or sets the background image layout in the menu.

CloseOnItemClick

Gets or sets the value indicating whether to close the menu when an item is clicked.

Gets the collection of commandlinks.

DefaultText

This property is for internal use only.

Font

Gets or sets the font of menu.

ForeColor

Gets or sets the text color of the menu.

ForeHiColor

Gets or sets the text color of the highlighted item.

HideFirstDelimiter

Gets or sets a value indicating whether the control should hide the first delimiter.

Gets or sets the value indicating whether to hide rarely used menu items.

ImageBarWidth

Gets or sets the width of the image/checkbox bar in the menu. If set to 0, the width is calculated automatically.

IsParent

Determines whether this command is a non-empty submenu.

LargeMenuDisplay

Determines the way large menus (when all items cannot fit in one column) are displayed.

RightToLeft

Specifies a value indicating whether the text appears from right to left, such as when using Hebrew or Arabic fonts.

SeparateCheckBar

Gets or sets the value indicating whether to show check marks instead of images or in a separate bar.

ShowToolTips

Gets or sets the value indicating whether to show tooltip texts when mouse cursor is over menu item.

ShowVerticalSeparator

Gets or sets a value indicating whether the control should show vertical separator line between C1CommandLink's image or check icon and text.

SideCaption

Allows to specify a caption (text and/or image) to be shown alongside the left edge of the menu.

SuperTooltip
VisualStyle

Gets or sets the visual style of the control.

Width

Gets or sets the minimum width of the menu.

Methods

Name Description
AssignFrom(C1Command)

Copy another command properties to this command

Dispose(bool)

Releases the resources used by the C1CommandMenu.

IC1GetAmbientRootSource(string)

Get active holder of current VisualStyle.

Invoke(ClickEventArgs)

Invokes the command.

OnBackColorChanged(EventArgs)

This method is for internal use only.

OnBackHiColorChanged(EventArgs)

This method is for internal use only.

OnBackgroundImageChanged(EventArgs)

This method is for internal use only.

OnClosed(EventArgs)

This method is for internal use only.

OnFontChanged(EventArgs)

This method is for internal use only.

OnForeColorChanged(EventArgs)

This method is for internal use only.

OnForeHiColorChanged(EventArgs)

This method is for internal use only.

OnHideNonRecentLinksChanged(EventArgs)

This method is for internal use only.

OnLargeMenuDisplayChanged(EventArgs)

This method is for internal use only.

OnPopup(EventArgs)

This method is for internal use only.

OnShowToolTipsChanged(EventArgs)

This method is for internal use only.

OnSideCaptionChanged(EventArgs)

This method is for internal use only.

OnVisualStyleChanged(EventArgs)

Invokes the VisualStyleChanged event.

OnWidthChanged(EventArgs)

This method is for internal use only.

ResetBackColor()

This method is for internal use only.

ResetBackHiColor()

This method is for internal use only.

ResetFont()

This method is for internal use only.

ResetForeColor()

This method is for internal use only.

ResetForeHiColor()

This method is for internal use only.

ResetSideCaption()

This method is for internal use only.

ResetVisualStyle()

Restore the VisualStyle property to its default value.

ShouldSerializeBackColor()

This method is for internal use only.

ShouldSerializeBackHiColor()

This method is for internal use only.

ShouldSerializeFont()

This method is for internal use only.

ShouldSerializeForeColor()

This method is for internal use only.

ShouldSerializeForeHiColor()

This method is for internal use only.

ShouldSerializeShowToolTips()

Indicates whether the ShowToolTips has a default value.

ShouldSerializeSideCaption()

This method is for internal use only.

ShouldSerializeSuperTooltip()

Indicates whether the SuperTooltip has a default value.

ShouldSerializeVisualStyle()

Indicates whether the VisualStyle has a default value.

ShouldSerializeVisualStyleBase()

Indicates whether the C1.Win.C1Command.C1CommandMenu.VisualStyleBase has a default value.

Events

Name Description
BackColorChanged

Occurs when the value of the BackColor property changes.

BackHiColorChanged

Occurs when the value of the BackHiColor property changes.

BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

Closed

Occurs after the command's submenu is closed.

CurrentLinkChanged

Occurs when the current command link changes.

DrawBar

Occurs when an owner drawn menu or toolbar needs to be drawn.

Occurs when an owner drawn link needs to be drawn.

FontChanged

Event fired when the Font property of menu is changed.

ForeColorChanged

Occurs when the value of the ForeColor property changes.

ForeHiColorChanged

Occurs when the value of the ForeHiColor property changes.

HideNonRecentLinksChanged

Occurs when the value of the HideNonRecentLinks property changes.

LargeMenuDisplayChanged

Event fired when the LargeMenuDisplay property of menu is changed.

Occurs when an owner drawn link needs to layout its text, image and control within the link bounds.

Occurs when an owner drawn link needs to be measured.

Popup

Occurs before the command's submenu is displayed.

ShowToolTipsChanged

Event fired when the ShowToolTips property of menu is changed.

SideCaptionChanged

Event fired when the SideCaption property of menu is changed.

VisualStyleChanged

Occurs when the VisualStyle property has changed.

WidthChanged

Event fired when the Width property of menu is changed.