Свойство | Type | Description | |
---|---|---|---|
OnContextMenuDisposed | void | ||
OnNeedPaint | void | ||
PerformNeedPaint | void | ||
ResetTag | void | ||
ShouldSerializeImages | bool | ||
ShouldSerializePaletteMode | bool | ||
ShouldSerializeStateChecked | bool | ||
ShouldSerializeStateCommon | bool | ||
ShouldSerializeStateDisabled | bool | ||
ShouldSerializeStateHighlight | bool | ||
ShouldSerializeStateNormal | bool | ||
ShouldSerializeTag | bool |
Méthode | Description | |
---|---|---|
Close ( ) : void |
Close any showing context menu.
|
|
Close ( ToolStripDropDownCloseReason reason ) : void |
Close any showing context menu.
|
|
KryptonContextMenu ( ) : System |
Initialize a new instance of the KryptonContextMenu class.
|
|
ProcessShortcut ( Keys keyData ) : bool |
Test for the provided shortcut and perform relevant action if a match is found.
|
|
ResetPalette ( ) : void |
Resets the Palette property to its default value.
|
|
ResetPaletteMode ( ) : void |
Resets the PaletteMode property to its default value.
|
|
Show ( object caller ) : bool |
Show the context menu at the current mouse location.
|
|
Show ( object caller, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool |
Show the context menu relative to the current mouse location.
|
|
Show ( object caller, Point screenPt ) : bool |
Show the context menu relative to the provided screen point.
|
|
Show ( object caller, Point screenPt, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool |
Show the context menu relative to the provided screen point.
|
|
Show ( object caller, |
Show the context menu relative to the provided screen rectangle.
|
|
Show ( object caller, |
Show the context menu relative to the provided screen rectangle.
|
|
Show ( object caller, |
Show the context menu relative to the provided screen rectangle.
|
Méthode | Description | |
---|---|---|
CreateContextMenu ( |
Create a new visual context menu for showing the defined items.
|
|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
OnClosed ( System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void |
Raises the Closed event.
|
|
OnClosing ( CancelEventArgs e ) : void |
Raises the Closing event.
|
|
OnOpened ( |
Raises the Opened event.
|
|
OnOpening ( CancelEventArgs e ) : void |
Raises the Opening event.
|
Méthode | Description | |
---|---|---|
OnContextMenuDisposed ( object sender, |
||
OnNeedPaint ( object sender, |
||
PerformNeedPaint ( bool needLayout ) : void | ||
ResetTag ( ) : void | ||
ShouldSerializeImages ( ) : bool | ||
ShouldSerializePaletteMode ( ) : bool | ||
ShouldSerializeStateChecked ( ) : bool | ||
ShouldSerializeStateCommon ( ) : bool | ||
ShouldSerializeStateDisabled ( ) : bool | ||
ShouldSerializeStateHighlight ( ) : bool | ||
ShouldSerializeStateNormal ( ) : bool | ||
ShouldSerializeTag ( ) : bool |
public Close ( ToolStripDropDownCloseReason reason ) : void | ||
reason | ToolStripDropDownCloseReason | Reason why the context menu is being closed. |
Résultat | void |
protected CreateContextMenu ( |
||
kcm | Owning KryptonContextMenu instance. | |
palette | IPalette | Drawing palette. |
paletteMode | PaletteMode | Drawing palette mode. |
redirector | Redirector for sourcing base values. | |
redirectorImages | Redirector for sourcing base images. | |
items | KryptonContextMenuCollection | Colletion of menu items. |
enabled | System.Boolean | Enabled state of the menu. |
keyboardActivated | bool | True is menu was keyboard initiated. |
Résultat |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
Résultat | void |
protected OnClosed ( System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void | ||
e | System.Windows.Forms.ToolStripDropDownClosedEventArgs | An ToolStripDropDownClosedEventArgs containing the event data. |
Résultat | void |
protected OnClosing ( CancelEventArgs e ) : void | ||
e | CancelEventArgs | A CancelEventArgs containing the event data. |
Résultat | void |
protected OnOpened ( |
||
e | An EventArgs containing the event data. | |
Résultat | void |
protected OnOpening ( CancelEventArgs e ) : void | ||
e | CancelEventArgs | A CancelEventArgs containing the event data. |
Résultat | void |
public ProcessShortcut ( Keys keyData ) : bool | ||
keyData | Keys | Key data to check against shorcut definitions. |
Résultat | bool |
public Show ( object caller ) : bool | ||
caller | object | Reference to object causing the context menu to be shown. |
Résultat | bool |
public Show ( object caller, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool | ||
caller | object | Reference to object causing the context menu to be shown. |
horz | KryptonContextMenuPositionH | Horizontal location relative to screen rectangle. |
vert | KryptonContextMenuPositionV | Vertical location relative to screen rectangle. |
Résultat | bool |
public Show ( object caller, Point screenPt ) : bool | ||
caller | object | Reference to object causing the context menu to be shown. |
screenPt | Point | Screen location. |
Résultat | bool |
public Show ( object caller, Point screenPt, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool | ||
caller | object | Reference to object causing the context menu to be shown. |
screenPt | Point | Screen location. |
horz | KryptonContextMenuPositionH | Horizontal location relative to screen rectangle. |
vert | KryptonContextMenuPositionV | Vertical location relative to screen rectangle. |
Résultat | bool |
public Show ( object caller, |
||
caller | object | Reference to object causing the context menu to be shown. |
screenRect | Screen rectangle. | |
Résultat | bool |
public Show ( object caller, |
||
caller | object | Reference to object causing the context menu to be shown. |
screenRect | Screen rectangle. | |
horz | KryptonContextMenuPositionH | Horizontal location relative to screen rectangle. |
vert | KryptonContextMenuPositionV | Vertical location relative to screen rectangle. |
Résultat | bool |
public Show ( object caller, |
||
caller | object | Reference to object causing the context menu to be shown. |
screenRect | Screen rectangle. | |
horz | KryptonContextMenuPositionH | Horizontal location relative to screen rectangle. |
vert | KryptonContextMenuPositionV | Vertical location relative to screen rectangle. |
keyboardActivated | bool | Was context menu initiated via a keyboard action. |
constrain | bool | Should size and position of menu be constrained by display size. |
Résultat | bool |