ToolStripDropDownMenu::ShowImageMargin Property

 

Gets or sets a value indicating whether space for an image 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 ShowImageMargin {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

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

Set the ShowImageMargin property to true to display a graphic image with 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: