Property.NumIndices Property

 

Gets the number of indices required to access the value.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

short NumIndices { get; }

Property Value

Type: System.Int16

A short integer representing the number of indices required to access the value.

The valid arguments to the IndexedValue are 1 through the return value from the NumIndices property, inclusive.

Sub NumIndicesExample()
   Dim Props As Properties
   Dim PropObj As [Property]
   Dim NameValPair As String

   Props = DTE.Properties("Environment", "General")
   MsgBox("Tools – Options – Environment – General Properties Count _
   = " & Props.Count())
   For Each PropObj In Props
     NameValPair = NameValPair & (PropObj.Name & "Value = " & _
     PropObj.Value & microsoft.VisualBasic.ControlChars.CrLf)
   Next
   MsgBox(NameValPair)
   MsgBox("NumIndices value: " & PropObj.NumIndices)
End Sub
Return to top
Show: