PropertyGrid.ContextMenuDefaultLocation Property

 

Gets the default location for the shortcut menu.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public Point ContextMenuDefaultLocation { get; }

Property Value

Type: System.Drawing.Point

The default location for the shortcut menu if the command is invoked. Typically, this is centered over the selected property.

The shortcut menu location is the center of the active property label in the grid. You can use this information to position the shortcut menu when the menu is invoked using the keyboard.

.NET Framework
Available since 1.1
Return to top
Show: