次の方法で共有


ContentControl.SetUncheckedSymbol メソッド (Word)

チェック ボックス コンテンツ コントロールのオフ状態を表す記号を設定します。

構文

expression. SetCheckedSymbol( _CharacterNumber_ , _Font_ )

'ContentControl' オブジェクトを返す式。

パラメーター

名前 必須 / オプション データ型 説明
CharacterNumber 必須 長整数型 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 省略可能 String 該当する記号を含むフォントの名前を指定します。

次のコード例では、指定したコンテンツ コントロールのオフ状態を "MS Gothic" フォントの (☐) 記号として設定します。

Dim objCC As ContentControl 
 
Set objCC = ActiveDocument.ContentControls.Add (wdContentControlCheckbox) 
objCC.SetUncheckedSymbol CharacterNumber:=&H2610, Font:="MS Gothic" 

関連項目

ContentControl オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。