Inheritance
System.Object
MenuGridControlBase
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter
Assembly: Syncfusion.Tools.Windows.dll
public class MenuGridControlBase : GridControlBase, IDisposable, ICancelModeProvider, ISplitterPaneSupport, IScrollBarWrapperContainer, ISupportUpdating, ISupportIntelliMouse, IQueryFocusInside, INonClientPaintingSupport, IThemedControl, ICreateNewWindow, IGridModelSource, IGridWindowlessSite, IGridWindowlessObject, IFindParentForm, IThemeProvider, IVisualStyle, IBarItemContainerControl, IMessageFilter
Constructors
Declaration
public MenuGridControlBase()
Fields
Declaration
protected const int ArrowColumn = 4
Field Value
Declaration
protected int ArrowColumnWidth
Field Value
Declaration
protected BarItem cachedSelectedItem
Field Value
Declaration
protected bool fixedWidth
Field Value
Declaration
protected const int IconColumn = 1
Field Value
Declaration
protected int IconColumnWidth
Field Value
Declaration
protected GridRangeInfo lastHighlight
Field Value
Declaration
protected readonly int MenuColCount
Field Value
Declaration
protected int mouseDownItem
Field Value
Declaration
protected Point mouseDownPoint
Field Value
Type |
System.Drawing.Point |
Declaration
protected const int ShortcutColumn = 3
Field Value
Declaration
protected int ShortcutColumnWidth
Field Value
TextColumn
Declaration
protected const int TextColumn = 2
Field Value
TextColumnWidth
Declaration
protected int TextColumnWidth
Field Value
Properties
Declaration
public BarItem CurrentHotTrackItem { get; }
Property Value
Declaration
public bool Customizing { get; }
Property Value
Declaration
public GridRangeInfo HighlightRange { get; set; }
Property Value
Declaration
protected virtual bool MenuBound { get; set; }
Property Value
Declaration
public ParentBarItem ParentItem { get; }
Property Value
Gets or Sets, scroll items in menu, when mouse moves over scroll buttons.
Declaration
public bool ScrollOnMouseMove { get; set; }
Property Value
Declaration
public int SelectedIndex { get; set; }
Property Value
Declaration
public BarItem SelectedItem { get; set; }
Property Value
Methods
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Declaration
protected virtual void CustomizingItemChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
Declaration
protected override void DrawInvertCell(Graphics g, int rowIndex, int colIndex, Rectangle rectItem, bool inPaint)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Int32 |
rowIndex |
|
System.Int32 |
colIndex |
|
System.Drawing.Rectangle |
rectItem |
|
System.Boolean |
inPaint |
|
Overrides
Declaration
protected void FreeObjectCache()
Declaration
protected virtual int GetApproxWidth(Graphics g, BarItem item, string text)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
BarItem |
item |
|
System.String |
text |
|
Returns
Declaration
public Rectangle GetBoundsOf(BarItem item)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected virtual int GetExactWidth(Graphics g, int row, int column)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Int32 |
row |
|
System.Int32 |
column |
|
Returns
Declaration
protected virtual void HideHighlight(GridRangeInfo range)
Parameters
Declaration
public virtual void HidePopup(PopupCloseType popupCloseType)
Parameters
Declaration
protected int HitTestBarItemIndex(Point pointAt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointAt |
|
Returns
Declaration
protected virtual void InitializeComponent()
Declaration
protected override void InitializeMouseControllers()
Overrides
Declaration
protected virtual void InitMenuGrid()
Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
keyData |
|
Returns
Overrides
Declaration
protected virtual bool IsItemVisibleOrExpandable(BarItem item, bool shouldDrawVisible)
Parameters
Type |
Name |
Description |
BarItem |
item |
|
System.Boolean |
shouldDrawVisible |
|
Returns
Declaration
protected bool IsSelectable(int rowIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
|
Returns
Declaration
protected virtual void JitCode()
Declaration
protected virtual void ModelQueryRowCount(object sender, GridRowColCountEventArgs e)
Parameters
Declaration
protected virtual void ModelQueryRowHeight(object sender, GridRowColSizeEventArgs e)
Parameters
Declaration
protected virtual bool MoveSelection(MoveHint hint)
Parameters
Returns
Declaration
protected virtual void OnChildCollectionChanged(object sender, CollectionChangeEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.ComponentModel.CollectionChangeEventArgs |
e |
|
Declaration
protected override void OnDrawCellFrameAppearance(GridDrawCellBackgroundEventArgs e)
Parameters
Overrides
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyEventArgs |
e |
|
Overrides
Declaration
protected override void OnLeftColChanging(GridRowColIndexChangingEventArgs e)
Parameters
Overrides
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Declaration
protected override void OnPaint(PaintEventArgs pevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
pevent |
|
Overrides
Declaration
public virtual bool OnQueryCellInfo(int rowIndex, int colIndex, GridStyleInfo style, int nType)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
|
System.Int32 |
colIndex |
|
GridStyleInfo |
style |
|
System.Int32 |
nType |
|
Returns
Declaration
public virtual bool OnQueryCoveredRange(int rowIndex, int colIndex, out GridRangeInfo range)
Parameters
Type |
Name |
Description |
System.Int32 |
rowIndex |
|
System.Int32 |
colIndex |
|
GridRangeInfo |
range |
|
Returns
Declaration
protected override void OnScrollControlMouseDown(CancelMouseEventArgs e)
Parameters
Overrides
Declaration
protected override void OnSystemColorsChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnThemeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
public bool PreFilterMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
protected virtual bool ProcessKeyDown(Keys keyCode)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
keyCode |
|
Returns
Declaration
protected virtual void Property_Changed(object sender, SyncfusionPropertyChangedEventArgs e)
Parameters
Declaration
protected override void Refresh(bool fromModel)
Parameters
Type |
Name |
Description |
System.Boolean |
fromModel |
|
Overrides
Declaration
protected virtual void RefreshMenuGrid(bool bNoShow)
Parameters
Type |
Name |
Description |
System.Boolean |
bNoShow |
|
Declaration
protected string ReplaceCallBack(Match match)
Parameters
Type |
Name |
Description |
System.Text.RegularExpressions.Match |
match |
|
Returns
Declaration
protected virtual void ResetDragging()
Declaration
protected void ResizeColumns()
Declaration
protected void ResizeRowHeights()
Declaration
protected BarItem SetSelectionAt(Point point)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
point |
|
Returns
Declaration
protected BarItem SetSelectionAtRow(int row)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
Returns
SetTextColorAndFontOnStyle(BarItem, GridStyleInfo)
Declaration
protected virtual void SetTextColorAndFontOnStyle(BarItem BarItem, GridStyleInfo Style)
Parameters
Declaration
protected virtual void SetupGridMenuLike()
Declaration
protected bool ShouldDrawEnabled(BarItem item)
Parameters
Returns
Declaration
public static bool ShouldDrawVisible(ParentBarItem parentItem, BarItem item, bool customizing)
Parameters
Returns
Declaration
public virtual void Show(ParentBarItem parentItem, Point location, IPopupParent parentUI, bool setDefaultSelection)
Parameters
Type |
Name |
Description |
ParentBarItem |
parentItem |
|
System.Drawing.Point |
location |
|
IPopupParent |
parentUI |
|
System.Boolean |
setDefaultSelection |
|
Declaration
protected virtual void ShowHighlight(GridRangeInfo range)
Parameters
Declaration
protected override void UnwireModel()
Overrides
Declaration
protected virtual void UpdateStyleBasedOnItem(GridStyleInfo style, IRequiresControl barItemRequiringControl)
Parameters
Declaration
protected override void WireModel()
Overrides
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter