次の方法で共有


ContentControl.Type プロパティ

ContentControl が表すコンテンツ コントロールの種類を指定する値を取得または設定します。

名前空間:  Microsoft.Office.Tools.Word
アセンブリ:  Microsoft.Office.Tools.Word (Microsoft.Office.Tools.Word.dll 内)

構文

'宣言
Property Type As WdContentControlType
WdContentControlType Type { get; set; }

プロパティ値

型 : Microsoft.Office.Interop.Word.WdContentControlType
ContentControl が表すコンテンツ コントロールの種類。

解説

実行時に ContentControl の UI と機能を変更するには、Type プロパティを使用します。

Microsoft.Office.Interop.Word.WdContentControlType 値と、各値が指定するコンテンツ コントロールの種類を次の表に示します。各種コンテンツ コントロールの詳細については、「コンテンツ コントロール」を参照してください。

価値

Control

wdContentControlBuildingBlockGallery

ビルド ブロック ギャラリ

wdContentControlComboBox

コンボ ボックス

wdContentControlDate

日付選択

wdContentControlGroup

グループ

wdContentControlDropdownList

ドロップダウン リスト

wdContentControlPicture

画像

wdContentControlRichText

リッチ テキスト

wdContentControlText

書式なしテキスト

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

ContentControl インターフェイス

Microsoft.Office.Tools.Word 名前空間