Document.SelectUnlinkedControls Method
Returns all the content controls in the document that are not linked to a custom XML part.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Function SelectUnlinkedControls ( _
Stream As CustomXMLPart _
) As ContentControls
ContentControls SelectUnlinkedControls(
CustomXMLPart Stream
)
Parameters
Stream
Type: CustomXMLPartThe CustomXMLPart that is used to filter the content controls you want to get in the document. If you specify a value for this parameter, this method returns only the content controls that reference this CustomXMLPart in their XMLMapping property.
Return Value
Type: ContentControls
A ContentControls collection that contains the content controls in the document that are not linked to a custom XML part.
Remarks
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.