CleanupOptions Class |
Namespace: Aspose.Words
The CleanupOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | CleanupOptions | Initializes a new instance of the CleanupOptions class |
Name | Description | |
---|---|---|
![]() ![]() | UnusedLists |
Specifies whether unused list and list definitions should be removed from document.
Default value is true.
|
![]() ![]() | UnusedStyles |
Specifies whether unused styles should be removed from document.
Default value is true.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(MyDir + "Document.docx"); CleanupOptions cleanupOptions = new CleanupOptions { UnusedLists = true, UnusedStyles = true }; doc.Cleanup(cleanupOptions);