ToolStripDropDownMenu::ShowCheckMargin Property

 

Gets or sets a value indicating whether space for a check mark is shown on the left edge of the ToolStripMenuItem.

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

public:
property bool ShowCheckMargin {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the check margin is shown; otherwise, false. The default is false.

Set the ShowCheckMargin property to true to display a check mark when the user chooses the ToolStripMenuItem.

The following code example demonstrates how to create and initialize a ContextMenuStrip control by setting the check and image margins. For a full code listing, see How to: Enable Check Margins and Image Margins in ContextMenuStrip Controls.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: