Export (0) Print
Expand All

ToolStripMenuItem.CheckState Property

Gets or sets a value indicating whether a ToolStripMenuItem is in the checked, unchecked, or indeterminate state.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

[BindableAttribute(true)] 
public:
property CheckState CheckState {
	CheckState get ();
	void set (CheckState value);
}
/** @property */
public CheckState get_CheckState ()

/** @property */
public void set_CheckState (CheckState value)

public function get CheckState () : CheckState

public function set CheckState (value : CheckState)

Not applicable.

Property Value

One of the System.Windows.Forms.CheckState values. The default is Unchecked.

Exception typeCondition

InvalidEnumArgumentException

The CheckState property is not set to one of the System.Windows.Forms.CheckState values.

Use the CheckState property to control or determine whether a ToolStripMenuItem is initially checked, unchecked, or in an indeterminate state.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft