ToolStripDropDownMenu.ShowCheckMargin Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 2.0
Return to top
Show: