VCCodeModel::DialogClasses Property (String^)
Visual Studio 2015
Gets a collection of dialog classes.
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
property CodeElements^ default[ String^ Filter = "" ] { CodeElements^ get(String^ Filter = ""); }
Parameters
- Filter
-
Type:
System::String^
Optional. If supplied, this returns only those dialog classes whose resource ID matches the value of Filter.
DialogClasses returns the dialog classes found in the VCCodeModel object. If a filter is used, only classes that match the specified resource ID are returned.
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
This example adds a comment to all dialog classes in the project.
Sub AddCommentToDialogClasses() Dim codeModel As VCCodeModel codeModel = DTE.Solution.Item(1).CodeModel Dim codeClass As VCCodeClass For Each codeClass In codeModel.DialogClasses codeClass.Comment += " This is a Dialog class" Next End Sub
Show: