Adds the specified form control to the shapes collection at the specified position and with the specified size.
            
            
            
            
            
            
            
            'Declaration
 
Function AddFormControl( _
   ByVal  As FormControlType, _
   ByVal  As System.Double, _
   ByVal  As System.Double, _
   ByVal  As System.Double, _
   ByVal  As System.Double _
) As IShape
             
        
            
            'Usage
 
Dim instance As IShapes
Dim type As FormControlType
Dim left As System.Double
Dim top As System.Double
Dim width As System.Double
Dim height As System.Double
Dim value As IShape
 
value = instance.AddFormControl(type, left, top, width, height)
             
        
            
            IShape AddFormControl( 
   FormControlType ,
   System.double ,
   System.double ,
   System.double ,
   System.double 
)
             
        
            
            function AddFormControl( 
    : FormControlType;
    : System.Double;
    : System.Double;
    : System.Double;
    : System.Double
): IShape; 
             
        
            
            function AddFormControl( 
    : FormControlType,
    : System.double,
    : System.double,
    : System.double,
    : System.double
) : IShape;
             
        
            
            IShape* AddFormControl( 
   FormControlType ,
   System.double ,
   System.double ,
   System.double ,
   System.double 
) 
             
        
            
            IShape^ AddFormControl( 
   FormControlType ,
   System.double ,
   System.double ,
   System.double ,
   System.double 
) 
             
        
             
        
            Parameters
- type
- The type of the new form control.
- left
- Left edge of the new shape in points.
- top
- Top edge of the new shape in points.
- width
- Width of the new shape in points.
- height
- Height of the new shape in points.
Return Value
A shape object representing the newly created form control.
 
            
            
            
            
            Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2