Shape.WebTextBox プロパティ (Publisher)

指定した図形に関連付けられた WebTextBox オブジェクトを取得します。

構文

WebTextBox

Shape オブジェクトを表す変数。

戻り値

WebTextBox

次の使用例は、新しい Web テキスト ボックスを作成し、既定のテキストを指定し、エントリが必要であることを示し、エントリを 50 文字に制限します。

Dim shpNew As Shape 
Dim wtbTemp As WebTextBox 
 
Set shpNew = ActiveDocument.Pages(1).Shapes _ 
 .AddWebControl(Type:=pbWebControlSingleLineTextBox, _ 
 Left:=100, Top:=100, Width:=150, Height:=15) 
 
Set wtbTemp = shpNew.WebTextBox 
 
With wtbTemp 
.DefaultText = "Please Enter Your Full Name" 
 .RequiredControl = msoTrue 
 .Limit = 50 
End With

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

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