ListBox 构造函数 (Factory, IHostItemProvider, IServiceProvider, String, String, Object, String)

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

命名空间:  Microsoft.Office.Tools.Word.Controls
程序集:  Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

语法

声明
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 ListBox(
    Factory factory,
    IHostItemProvider hostItemProvider,
    IServiceProvider serviceProvider,
    string cookie,
    string extenderCookie,
    Object container,
    string identifier
)

参数

备注

不要使用构造函数来创建新的 ListBox。 使用 AddListBox() 方法可将新的 ListBox 添加到文档中。 有关更多信息,请参见在运行时向 Office 文档添加控件

.NET Framework 安全性

请参见

参考

ListBox 类

ListBox 重载

Microsoft.Office.Tools.Word.Controls 命名空间