Back to Devexpress

VbaModuleCollection.Clear() Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-vbamodulecollection.md

latest3.4 KB
Original Source

VbaModuleCollection.Clear() Method

Clears the collection.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Clear()
vb
Sub Clear

The following code snippets (auto-collected from DevExpress Examples) contain references to the Clear() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/VbaMacrosActions.cs#L34

csharp
if (document.VbaProject.Modules.Count > 0)
    document.VbaProject.Modules.Clear();
#endregion #ClearVbaModules

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/VbaMacros.cs#L29

csharp
if (document.VbaProject.Modules.Count > 0)
    document.VbaProject.Modules.Clear();
#endregion #ClearVbaModules

word-document-api-examples/CS/CodeExamples/VbaMacrosActions.cs#L31

csharp
if (document.VbaProject.Modules.Count > 0)
    document.VbaProject.Modules.Clear();
#endregion #ClearVbaModules

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/VbaMacros.vb#L24

vb
document.LoadDocument("Documents\Grimm.docx")
            If document.VbaProject.Modules.Count > 0 Then document.VbaProject.Modules.Clear()
#End Region ' #ClearVbaModules

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/VbaMacros.vb#L24

vb
document.LoadDocument("Documents\Grimm.docx")
            If document.VbaProject.Modules.Count > 0 Then document.VbaProject.Modules.Clear()
#End Region ' #ClearVbaModules

See Also

VbaModuleCollection Interface

VbaModuleCollection Members

DevExpress.XtraRichEdit.API.Native Namespace