Пример #1
0
        /// <summary>
        /// Called to get the properties of this type.
        /// </summary>
        /// <returns>A <see cref="PropertyDescriptorCollection"/> that
        /// represents the properties for this component instance.</returns>
        public PropertyDescriptorCollection GetProperties()
        {
            // Create a collection object to hold property descriptors
            PropertyDescriptorCollection pds = new PropertyDescriptorCollection(null);

            // Iterate the list of employees
            for (int i = 0; i < this.List.Count; i++)
            {
                // Create a property descriptor for the VGElement item
                // and add to the property descriptor collection
                VGElementCollectionPropertyDescriptor pd =
                    new VGElementCollectionPropertyDescriptor(this, i);
                pds.Add(pd);
            }

            // return the property descriptor collection
            return(pds);
        }
Пример #2
0
    /// <summary>
    /// Called to get the properties of this type.
    /// </summary>
    /// <returns>A <see cref="PropertyDescriptorCollection"/> that 
    /// represents the properties for this component instance.</returns>
    public PropertyDescriptorCollection GetProperties()
    {
      // Create a collection object to hold property descriptors
      PropertyDescriptorCollection pds = new PropertyDescriptorCollection(null);

      // Iterate the list of employees
      for (int i = 0; i < this.List.Count; i++)
      {
        // Create a property descriptor for the VGElement item 
        // and add to the property descriptor collection
        VGElementCollectionPropertyDescriptor pd =
          new VGElementCollectionPropertyDescriptor(this, i);
        pds.Add(pd);
      }

      // return the property descriptor collection
      return pds;
    }