共用方式為


DateTimePicker 建構函式 (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 DateTimePicker(
    Factory factory,
    IHostItemProvider hostItemProvider,
    IServiceProvider serviceProvider,
    string cookie,
    string extenderCookie,
    Object container,
    string identifier
)

參數

備註

請不要使用建構函式建立新的 DateTimePicker。 使用 AddDateTimePicker() 方法將新的 DateTimePicker 加入文件中。 如需詳細資訊,請參閱在執行階段將控制項加入至 Office 文件

.NET Framework 安全性

請參閱

參考

DateTimePicker 類別

DateTimePicker 多載

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