Skip to main content

ShapeCollection Members

A collection of drawing objects (shapes, pictures, text boxes, charts, watermarks, OLE objects, and ActiveX controls).

Properties

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
Item[String] Returns a shape with the specified name.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

Methods

Name Description
Clear() Removes all shapes from the collection.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
Flatten() Converts a shape collection into a flattened collection that contains all drawing objects in the document, including items of shape groups and canvases.
Get(DocumentRange) Gets all shapes located in the specified document range. Inherited from ReadOnlyShapeCollection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
InsertCanvas(DocumentPosition, RectangleF) Inserts a drawing canvas at the specified position in the document.
InsertCanvas(DocumentPosition, SizeF) Inserts a drawing canvas of specified size in the document.
InsertCanvas(DocumentPosition) Inserts a drawing canvas in the document.
InsertChart(DocumentPosition, ChartType) Inserts a chart at the specified position in the document.
InsertGroup(DocumentPosition) Inserts a shape group in the document.
InsertImageWatermark(DocumentPosition, DocumentImageSource, ImageWatermarkOptions) Inserts an image watermark into the section header.
InsertImageWatermark(DocumentPosition, DocumentImageSource) Inserts an image watermark into the section header.
InsertImageWatermark(DocumentPosition, Image, ImageWatermarkOptions) Inserts an image watermark into the section header.
InsertImageWatermark(DocumentPosition, Image) Inserts an image watermark into the section header.
InsertLine(DocumentPosition, PointF, PointF) Inserts a line in the document.
InsertOleObject(DocumentPosition, Stream, String, DocumentImageSource) Inserts an OLE object that stores data from the specified file. The object is displayed in the document as an image.
InsertOleObject(DocumentPosition, Stream, String, Image) Inserts an OLE object that stores data from the specified file. The object is displayed in the document as an image.
InsertOleObject(DocumentPosition, String, DocumentImageSource) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an image.
InsertOleObject(DocumentPosition, String, Image) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an image.
InsertOleObject(DocumentPosition, String, String, DocumentImageSource) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an image.
InsertOleObject(DocumentPosition, String, String, Image) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an image.
InsertOleObjectAsIcon(DocumentPosition, Stream, String, DocumentImageSource) Inserts an OLE object that stores data from the specified file. The object is displayed in the document as an icon.
InsertOleObjectAsIcon(DocumentPosition, Stream, String, Image) Inserts an OLE object that stores data from the specified file. The object is displayed in the document as an icon.
InsertOleObjectAsIcon(DocumentPosition, String, DocumentImageSource) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an icon.
InsertOleObjectAsIcon(DocumentPosition, String, Image) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an icon.
InsertOleObjectAsIcon(DocumentPosition, String, String, DocumentImageSource) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an icon.
InsertOleObjectAsIcon(DocumentPosition, String, String, Image) Inserts an OLE object that contains a link to the specified file. The object is displayed in the document as an icon.
InsertPicture(DocumentPosition, DocumentImageSource) Inserts a picture in the document.
InsertPicture(DocumentPosition, Image) Inserts a picture in the document.
InsertShape(DocumentPosition, ShapeGeometryPreset, RectangleF) Inserts a shape at the specified position in the document.
InsertShape(DocumentPosition, ShapeGeometryPreset, SizeF) Inserts a shape of specified size in the document.
InsertShape(DocumentPosition, ShapeGeometryPreset) Inserts a shape in the document.
InsertTextBox(DocumentPosition, RectangleF) Inserts a text box at the specified position in the document.
InsertTextBox(DocumentPosition, SizeF) Inserts a text box of the specified size in the document.
InsertTextBox(DocumentPosition) Inserts a text box in the document.
InsertTextWatermark(DocumentPosition, String, TextWatermarkOptions) Inserts a text watermark into the section header.
InsertTextWatermark(DocumentPosition, String) Inserts a text watermark into the section header.
Remove(Shape) Removes the specified shape from the collection.
RemoveAt(Int32) Removes a shape with the specified index from the collection.
See Also