Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / ShapeCollection Class / Add Method
XLShape object to add to the collection.

In This Topic
    Add Method (ShapeCollection)
    In This Topic
    Appends an XLShape object to the collection.
    Syntax
    'Declaration
     
    
    Public Function Add( _
       ByVal shape As XLShape _
    ) As XLShape
    public XLShape Add( 
       XLShape shape
    )

    Parameters

    shape
    XLShape object to add to the collection.

    Return Value

    A reference to the object if it was successfully added to the collection, or null if the object could not be added to the collection (usually because it overlaps another cell range already in the collection).
    See Also