1. 表示快捷菜单。
2. ContextMenuStrip 构造函数:
- ContextMenuStrip:
- ContextMenuStrip(IContainer):
3. ContextMenuStrip 属性:
- Items:获取属于 ToolStrip 的所有项。返回值:ToolStripItemCollection 类!
4. ContextMenuStrip 方法:
- Show(Point):相对于指定的屏幕位置定位 ToolStripDropDown。(结合 Cursor 类来使用)
- Show(Point, ToolStripDropDownDirection):相对于指定的控件位置并以相对于父控件的指定方向定位 ToolStripDropDown。
- Show(Int32, Int32):相对于指定的屏幕坐标定位 ToolStripDropDown。
- Show(Control, Point):相对于指定的控件位置定位 ToolStripDropDown。
- Show(Control, Point, ToolStripDropDownDirection):相对于指定位置的指定控件并以相对于父控件的指定方向定位 ToolStripDropDown。
5. ContextMenuStrip 事件:
- ItemClicked:在单击 ToolStripItem 时发生。
- e.ClickedItem:返回点击的 ToolStripItem。