Class MenuGrid
Inheritance
System.Object
MenuGrid
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class MenuGrid : MenuGridControlCustomizable, IDisposable, ICancelModeProvider, ISplitterPaneSupport, IScrollBarWrapperContainer, ISupportUpdating, ISupportIntelliMouse, IQueryFocusInside, INonClientPaintingSupport, IThemedControl, ICreateNewWindow, IGridModelSource, IGridWindowlessSite, IGridWindowlessObject, IFindParentForm, IThemeProvider, IVisualStyle, IBarItemContainerControl, IMessageFilter, IDndTrackingControl, IPopupParent, IPopupControlContainer, IPopupChild, IPopupItem, INeedKeyboardMessages, INeedMouseMoveMessages, IMouseHookHLProcClient, IKeyboardProcHookClient, IIgnoreWorkingArea
Constructors
MenuGrid()
Declaration
public MenuGrid()
Fields
toolTip
Declaration
protected ToolTip toolTip
Field Value
Type |
---|
System.Windows.Forms.ToolTip |
Properties
DisplayedItemsCount
Declaration
public int DisplayedItemsCount { get; }
Property Value
Type |
---|
System.Int32 |
IgnoreWorkingArea
Declaration
public bool IgnoreWorkingArea { get; set; }
Property Value
Type |
---|
System.Boolean |
IsCustomizing
Declaration
protected bool IsCustomizing { get; }
Property Value
Type |
---|
System.Boolean |
IsRTL
Declaration
protected bool IsRTL { get; }
Property Value
Type |
---|
System.Boolean |
MaximumItemsToDisplay
Declaration
public int MaximumItemsToDisplay { get; }
Property Value
Type |
---|
System.Int32 |
MenuBound
Declaration
protected override bool MenuBound { get; set; }
Property Value
Type |
---|
System.Boolean |
Overrides
PopupHost
Declaration
public PopupHost PopupHost { get; set; }
Property Value
Type |
---|
PopupHost |
PopupParent
Declaration
public IPopupParent PopupParent { get; }
Property Value
Type |
---|
IPopupParent |
PreferredHeight
Declaration
public int PreferredHeight { get; }
Property Value
Type |
---|
System.Int32 |
ShowScrollBars
Declaration
public bool ShowScrollBars { get; }
Property Value
Type |
---|
System.Boolean |
Methods
CanScroll(Boolean)
Declaration
public bool CanScroll(bool down)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | down |
Returns
Type |
---|
System.Boolean |
ChildClosing(IPopupChild, PopupCloseType)
Declaration
public virtual void ChildClosing(IPopupChild childUI, PopupCloseType popupCloseType)
Parameters
Type | Name | Description |
---|---|---|
IPopupChild | childUI | |
PopupCloseType | popupCloseType |
CloseDropDowns()
Declaration
protected void CloseDropDowns()
CustomizationDone(Object, EventArgs)
Declaration
protected virtual void CustomizationDone(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.EventArgs | e |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
ExpandPartialMenus(Boolean)
Declaration
public void ExpandPartialMenus(bool forceOpen)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | forceOpen |
GetBorderOverlapCue(PopupRelativeAlignment)
Declaration
public Point[] GetBorderOverlapCue(PopupRelativeAlignment rAlign)
Parameters
Type | Name | Description |
---|---|---|
PopupRelativeAlignment | rAlign |
Returns
Type |
---|
System.Drawing.Point[] |
GetLocationForPopupAlignment(PopupRelativeAlignment, out PopupRelativeAlignment)
Declaration
public Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign)
Parameters
Type | Name | Description |
---|---|---|
PopupRelativeAlignment | prevAlign | |
PopupRelativeAlignment | newAlign |
Returns
Type |
---|
System.Drawing.Point |
GetOwnerForm()
Declaration
public Form GetOwnerForm()
Returns
Type |
---|
System.Windows.Forms.Form |
GetPopupParentControl()
Declaration
public virtual Control GetPopupParentControl()
Returns
Type |
---|
System.Windows.Forms.Control |
GetPreferredLocation(PopupRelativeAlignment, out PopupRelativeAlignment)
Declaration
public Point GetPreferredLocation(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign)
Parameters
Type | Name | Description |
---|---|---|
PopupRelativeAlignment | prevAlign | |
PopupRelativeAlignment | newAlign |
Returns
Type |
---|
System.Drawing.Point |
HideHighlight(GridRangeInfo)
Declaration
protected override void HideHighlight(GridRangeInfo range)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range |
Overrides
HidePopup(PopupCloseType)
Declaration
public override void HidePopup(PopupCloseType popupCloseType)
Parameters
Type | Name | Description |
---|---|---|
PopupCloseType | popupCloseType |
Overrides
IsCurrentCellActivatable()
Declaration
protected bool IsCurrentCellActivatable()
Returns
Type |
---|
System.Boolean |
IsCurrentCellRelatedControl(Control)
Declaration
protected virtual bool IsCurrentCellRelatedControl(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
Returns
Type |
---|
System.Boolean |
IsRelatedControl(Control, Boolean)
Declaration
public virtual bool IsRelatedControl(Control control, bool askParent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | |
System.Boolean | askParent |
Returns
Type |
---|
System.Boolean |
IsShowing()
Declaration
public bool IsShowing()
Returns
Type |
---|
System.Boolean |
JitCode()
Declaration
protected override void JitCode()
Overrides
KeyboardMessage(ref Message)
Declaration
public virtual bool KeyboardMessage(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m |
Returns
Type |
---|
System.Boolean |
ModelQueryRowHeight(Object, GridRowColSizeEventArgs)
Declaration
protected override void ModelQueryRowHeight(object sender, GridRowColSizeEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
GridRowColSizeEventArgs | e |
Overrides
MouseMessage(ref Message)
Declaration
public virtual bool MouseMessage(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m |
Returns
Type |
---|
System.Boolean |
MoveSelection(MoveHint)
Declaration
protected override bool MoveSelection(MoveHint hint)
Parameters
Type | Name | Description |
---|---|---|
MoveHint | hint |
Returns
Type |
---|
System.Boolean |
Overrides
NeedDelayedExpansion()
Declaration
public bool NeedDelayedExpansion()
Returns
Type |
---|
System.Boolean |
NotifyItem(BarItem)
Declaration
protected virtual void NotifyItem(BarItem item)
Parameters
Type | Name | Description |
---|---|---|
BarItem | item |
OnChildClosed(PopupCloseType, Boolean)
Declaration
public void OnChildClosed(PopupCloseType popupCloseType, bool fromChildControl)
Parameters
Type | Name | Description |
---|---|---|
PopupCloseType | popupCloseType | |
System.Boolean | fromChildControl |
OnChildCollectionChanged(Object, CollectionChangeEventArgs)
Declaration
protected override void OnChildCollectionChanged(object sender, CollectionChangeEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.ComponentModel.CollectionChangeEventArgs | e |
Overrides
OnCurrentCellActivating(GridCurrentCellActivatingEventArgs)
Declaration
protected override void OnCurrentCellActivating(GridCurrentCellActivatingEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridCurrentCellActivatingEventArgs | e |
Overrides
OnCurrentCellControlLostFocus(ControlEventArgs)
Declaration
protected override void OnCurrentCellControlLostFocus(ControlEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ControlEventArgs | e |
Overrides
OnDrawCell(GridDrawCellEventArgs)
Declaration
protected override void OnDrawCell(GridDrawCellEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridDrawCellEventArgs | e |
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
Overrides
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs pevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | pevent |
Overrides
OnPaintBackground(PaintEventArgs)
Declaration
protected override void OnPaintBackground(PaintEventArgs pevent)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | pevent |
OnRightMouseDown(MouseEventArgs)
Declaration
protected virtual void OnRightMouseDown(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e |
OnStartDragging()
Declaration
protected override void OnStartDragging()
Overrides
ProcessItemClick(BarItem)
Declaration
protected virtual void ProcessItemClick(BarItem item)
Parameters
Type | Name | Description |
---|---|---|
BarItem | item |
ProcessKeyDown(Keys)
Declaration
protected override bool ProcessKeyDown(Keys keyCode)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Keys | keyCode |
Returns
Type |
---|
System.Boolean |
Overrides
ProcessMnemonic(Char)
Declaration
protected override bool ProcessMnemonic(char charCode)
Parameters
Type | Name | Description |
---|---|---|
System.Char | charCode |
Returns
Type |
---|
System.Boolean |
RefreshMenuGrid(Boolean)
Declaration
protected override void RefreshMenuGrid(bool bNoShow)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | bNoShow |
Overrides
ReleaseGrid()
Declaration
protected virtual void ReleaseGrid()
ResetDragging()
Declaration
protected override void ResetDragging()
Overrides
Scroll(Boolean)
Declaration
public void Scroll(bool down)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | down |
ShouldRemoveItemOnMove()
Declaration
protected override bool ShouldRemoveItemOnMove()
Returns
Type |
---|
System.Boolean |
Overrides
ShowChildrenUI(ParentBarItem, IPopupParent, Boolean, Queue)
Declaration
public virtual void ShowChildrenUI(ParentBarItem parent, IPopupParent parentUI, bool selectDefaultItem, Queue pbiQueue)
Parameters
Type | Name | Description |
---|---|---|
ParentBarItem | parent | |
IPopupParent | parentUI | |
System.Boolean | selectDefaultItem | |
System.Collections.Queue | pbiQueue |
ShowDropDown(Boolean)
Declaration
protected virtual void ShowDropDown(bool selectDefaultItem)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | selectDefaultItem |
ShowHighlight(GridRangeInfo)
Declaration
protected override void ShowHighlight(GridRangeInfo range)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range |
Overrides
StartListeningForDeactivation()
Declaration
protected virtual void StartListeningForDeactivation()
StopListeningForDeactivation()
Declaration
protected virtual void StopListeningForDeactivation()
UpdateHighlight()
Declaration
protected virtual void UpdateHighlight()
UpdateStyleBasedOnItem(GridStyleInfo, IRequiresControl)
Declaration
protected override void UpdateStyleBasedOnItem(GridStyleInfo style, IRequiresControl barItem)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | |
IRequiresControl | barItem |
Overrides
VeryifyMouseBasedDeactivation(Int32, Control)
Declaration
protected virtual void VeryifyMouseBasedDeactivation(int msg, Control destinationControl)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | msg | |
System.Windows.Forms.Control | destinationControl |
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m |
Overrides
Explicit Interface Implementations
IKeyboardProcHookClient.KeyboardHookProc(Int32, Int32)
Declaration
bool IKeyboardProcHookClient.KeyboardHookProc(int wParam, int lParam)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | wParam | |
System.Int32 | lParam |
Returns
Type |
---|
System.Boolean |
IMouseHookHLProcClient.MouseHookProc(Int32, Point, IntPtr, Int32, Int32)
Declaration
bool IMouseHookHLProcClient.MouseHookProc(int msg, Point point, IntPtr hwnd, int wHitTestCode, int dwExtraInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | msg | |
System.Drawing.Point | point | |
System.IntPtr | hwnd | |
System.Int32 | wHitTestCode | |
System.Int32 | dwExtraInfo |
Returns
Type |
---|
System.Boolean |
IPopupParent.IsRightToLeft
Declaration
bool IPopupParent.IsRightToLeft { get; }
Returns
Type |
---|
System.Boolean |
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter