Condividi tramite


ContentControl.Checked Property

Gets or sets a value that indicates whether a ContentControl that represents a check box control is checked or unchecked.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Property Checked As Boolean
bool Checked { get; set; }

Property Value

Type: System.Boolean
true if the content control is checked; otherwise, false.

Exceptions

Exception Condition
MissingMemberException

This property is used in a Word 2007 project.

COMException

The Type property does not have the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlCheckBox.

Remarks

This property can be used only if the ContentControl represents a check box content control.

Note

This method appears in IntelliSense in Word 2007 projects that target the .NET Framework 4. However, this property cannot be used in Word 2007 projects.

.NET Framework Security

See Also

Reference

ContentControl Interface

Microsoft.Office.Tools.Word Namespace