Compartilhar via


WizComboClass.Count Property

Definition

Gets a count of the items in the specified wizard combo box.

public:
 virtual property int Count { int get(); };
public:
 virtual property int Count { int get(); };
[System.Runtime.InteropServices.DispId(1610743815)]
public virtual int Count { [System.Runtime.InteropServices.DispId(1610743815)] get; }
[<System.Runtime.InteropServices.DispId(1610743815)>]
[<get: System.Runtime.InteropServices.DispId(1610743815)>]
member this.Count : int
Public Overridable ReadOnly Property Count As Integer

Property Value

The number of items in the wizard combo box.

Implements

Attributes

Examples

// From the Visual C++ Add Method wizard.  

function EnableDisableControls(bStock)  
{  
   if (bStock)  
   {  
      window.external.AddSymbol("DISPID_DISABLED", true);  
      INTERNAL_NAME.disabled = true;  
      PARAMETER_NAME.disabled = true;  
      PARAMETER_TYPE.Enabled = false;  
      INTERNAL_NAME_LABEL.disabled = true;  
      PARAMETER_NAME_LABEL.disabled = true;  
      PARAMETER_TYPE_LABEL.disabled = true;  

      PARAMETERS.length = 0;  
      INTERNAL_NAME.value = "";  
      RETURN_TYPE_LIST.ListIndex = RETURN_TYPE_LIST.Count - 1;  
      RETURN_TYPE_LIST.Enabled = false;  
      RETURN_TYPE_LABEL.disabled = true;  
   }  
   else  
   {  
      window.external.AddSymbol("DISPID_DISABLED", false);  
      INTERNAL_NAME.disabled = false;  
      PARAMETER_NAME.disabled = false;  
      PARAMETER_TYPE.Enabled = true;  
      INTERNAL_NAME_LABEL.disabled = false;  
      PARAMETER_NAME_LABEL.disabled = false;  
      PARAMETER_TYPE_LABEL.disabled = false;  

      INTERNAL_NAME.value = STOCK_METHODS.Value;  
      var strInterfaceType = window.external.FindSymbol("INTERFACE_TYPE");  
      var bLocalAttrib = window.external.FindSymbol("LOCAL_ATTRIB");  
      if (strInterfaceType == "dispinterface" || (strInterfaceType == "custom" && bLocalAttrib))  
      {  
         RETURN_TYPE_LIST.Enabled = true;  
         RETURN_TYPE_LABEL.disabled = false;  
      }  
   }  
   ToggleButtons();  
}  

Applies to