Share via


DTE2.Properties[String, String] Property

Definition

Gets a Properties collection representing all available categories and subcategories contained in the Options dialog box on the Tools menu.

public:
 property EnvDTE::Properties ^ Properties[System::String ^, System::String ^] { EnvDTE::Properties ^ get(System::String ^ Category, System::String ^ Page); };
[System.Runtime.InteropServices.DispId(212)]
public EnvDTE.Properties Properties[string Category, string Page] { [System.Runtime.InteropServices.DispId(212)] get; }
[<System.Runtime.InteropServices.DispId(212)>]
[<get: System.Runtime.InteropServices.DispId(212)>]
member this.Properties(string * string) : EnvDTE.Properties
Public ReadOnly Property Properties(Category As String, Page As String) As Properties

Parameters

Category
String

Required. The name of the property category, such as General or Text Editor.

Page
String

Optional. The name of the property page within the given Category, such as Keyboard.

Property Value

A Properties collection containing all available categories and subcategories in the IDE.

Implements

Attributes

Examples

Sub PropertiesExample()  
  MsgBox(DTE2.Properties("Environment", "General").Count)  
End Sub  

Remarks

The environment-level properties are organized in categories. Within each category, there is a Properties[] collection for each package or service that contributes to the environment.

If the specified properties collection is not available, Properties[] returns NULL.

Applies to