Export (0) Print
Expand All

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)

member ShowCheckMargin : bool with get, set

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft