DocumentBase.SmartDocument Property

Gets a SmartDocument that represents the settings for a smart document solution.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public SmartDocument SmartDocument { get; }

Property Value

Type: SmartDocument
A SmartDocument that represents the settings for a smart document solution.

For more information on smart documents, see the Smart Document Software Development Kit on the Microsoft Developer Network (MSDN) Web site.

The following code example displays a list of valid XML expansion packs for the document. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentSmartDocument()
{
    this.SmartDocument.PickSolution(true);
}

Show: