Share via


DocumentBase.SmartDocument 屬性

取得 SmartDocument,代表智慧文件方案的設定。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

'宣告
Public ReadOnly Property SmartDocument As SmartDocument
public SmartDocument SmartDocument { get; }

屬性值

型別:Microsoft.Office.Core.SmartDocument
SmartDocument ,表示智慧文件方案的設定。

備註

如需智慧文件的詳細資訊,請參閱 Microsoft Developer Network (MSDN) 網站上的<Smart Document Software Development Kit>。

範例

下列程式碼範例會顯示文件的有效 XML 擴充套件清單。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

Private Sub DocumentSmartDocument()
    Me.SmartDocument.PickSolution(True)
End Sub 
private void DocumentSmartDocument()
{
    this.SmartDocument.PickSolution(true);
}

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間