VCCodeModel.DialogClasses[String] VCCodeModel.DialogClasses[String] VCCodeModel.DialogClasses[String] VCCodeModel.DialogClasses[String] Property


Gets a collection of dialog classes.

 property EnvDTE::CodeElements ^ DialogClasses[System::String ^] { EnvDTE::CodeElements ^ get(System::String ^ Filter); };
[get: System.Runtime.InteropServices.DispId(563)]
[get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)]
public EnvDTE.CodeElements DialogClasses[string Filter = ""] { get; }
member this.DialogClasses(string) : EnvDTE.CodeElements
Public ReadOnly Property DialogClasses(Optional Filter As String = "") As CodeElements
String String String String

Optional. If supplied, this returns only those dialog classes whose resource ID matches the value of Filter.

Property Value


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"  
End Sub  


DialogClasses[String] 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.

Applies to