ContentControl.SetCheckedSymbol Method

Sets the symbol used to represent the checked state of a ContentControl that represents a check box control.

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

Syntax

'Declaration
Sub SetCheckedSymbol ( _
    CharacterNumber As Integer, _
    Font As String _
)
void SetCheckedSymbol(
    int CharacterNumber,
    string Font
)

Parameters

  • CharacterNumber
    Type: System.Int32

    The Unicode character number for the specified symbol. This value will always be the sum of 31 (the number of control symbols at the beginning of the font) and the number that corresponds to the position of the symbol in the table of symbols (counting from left to right). For example, to specify a delta character at position 37 in the table of symbols in the Symbol font, set CharacterNumber to 68.

  • Font
    Type: System.String

    The name of the font that contains the symbol.

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