Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.Office.Tools.Word.Controls
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public Sub New ( _
factory As Factory, _
hostItemProvider As IHostItemProvider, _
serviceProvider As IServiceProvider, _
cookie As String, _
extenderCookie As String, _
container As Object, _
identifier As String _
)
public TextBox(
Factory factory,
IHostItemProvider hostItemProvider,
IServiceProvider serviceProvider,
string cookie,
string extenderCookie,
Object container,
string identifier
)
Parameters
- factory
Type: Microsoft.Office.Tools.Word.Factory
- hostItemProvider
Type: Microsoft.Office.Tools.IHostItemProvider
- serviceProvider
Type: System.IServiceProvider
- cookie
Type: System.String
- extenderCookie
Type: System.String
- container
Type: System.Object
- identifier
Type: System.String
Remarks
Do not use the constructor to create a new TextBox. Use the AddTextBox() method to add a new TextBox to a document. For more information, see Adding Controls to Office Documents at Run Time.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.