Document Methods


Word Object Model Reference (Visual Studio Tools for Office)
Document.RemoveCustomization Method

Removes the Visual Studio Tools for Office customization from the document.

Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in microsoft.office.tools.word.dll)

Syntax

Visual Basic (Declaration)
Public Sub RemoveCustomization
Visual Basic (Usage)
Dim instance As Document

instance.RemoveCustomization
C#
public void RemoveCustomization ()
Remarks

This method removes the Runtime Storage Control from the document, and deletes the _AssemblyName and _AssemblyLocation custom document properties. For more information, see Runtime Storage Control Overview and Custom Document Properties Overview.

This method might throw an UnauthorizedAccessException if the document is protected. You should remove any protection from the document before calling this method.

See Also

Page view tracker