officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-vbamodulecollection.md
Clears the collection.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
void Clear()
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
if (document.VbaProject.Modules.Count > 0)
document.VbaProject.Modules.Clear();
#endregion #ClearVbaModules
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/VbaMacros.cs#L29
if (document.VbaProject.Modules.Count > 0)
document.VbaProject.Modules.Clear();
#endregion #ClearVbaModules
word-document-api-examples/CS/CodeExamples/VbaMacrosActions.cs#L31
if (document.VbaProject.Modules.Count > 0)
document.VbaProject.Modules.Clear();
#endregion #ClearVbaModules
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/VbaMacros.vb#L24
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
document.LoadDocument("Documents\Grimm.docx")
If document.VbaProject.Modules.Count > 0 Then document.VbaProject.Modules.Clear()
#End Region ' #ClearVbaModules
See Also