ExpandDocumentFragment Property
Sets or returns a Boolean that represents whether the specified document fragment control is expanded or collapsed in the Document Actions task pane. True indicates the control is expanded. False indicates the control is collapsed.
expression.ExpandDocumentFragment
expression Required. An expression that returns a SmartTagAction object.
Remarks
For more information on smart documents, please see the Smart Document Software Development Kit on the Microsoft Developer Network (MSDN) Web site.
Example
The following example collapses the specified document fragment. This example assumes that the first action for the first smart tag in the active document is a document fragment control.
ActiveDocument.SmartTags(1).SmartTagActions(1) _
.ExpandDocumentFragment = False