ITypeLibInfo::Enums Property

 

Gets the enumerations associated with the type library.

Namespace:   Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

property Object^ Enums {
	Object^ get();
}

Property Value

Type: System::Object^

An object containing a collection of enumerations associated with the type library.

// From the Visual C++ Member Variable wizard.
function GenerateActiveXControlClassEnums(oTypeLib)
{
   var nCount = oTypeLib.Enums.Count;
   var strEnumText = "";

   for (i = 1; i <=  nCount; i++)
   {
      var oEnum = oTypeLib.Enums.item(i);
      strEnumText += oEnum.Body;
   }
   return strEnumText;
}
Return to top
Show: