Selection.CreateTextbox Method

Adds a default-size text box around the selection.

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

Syntax

'Declaration
Sub CreateTextbox
'Usage
Dim instance As Selection

instance.CreateTextbox()
void CreateTextbox()

Remarks

If the selection is an insertion point, this method changes the pointer to a cross-hair pointer so that the user can draw a text box.

Using this method is equivalent to clicking the Text Box button on the Drawing toolbar. A text box is a rectangle with an associated text frame.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace