Class DrawingObjectCollection
Provides access to the drawing objects contained in a group shape.
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class DrawingObjectCollection : IEnumerable<IDrawingObject>, IEnumerable
Fields
VmlShapeId
Common id counter for shapes stored in Vml drawing.
Declaration
public int VmlShapeId
Field Value
| Type | Description |
|---|---|
| int |
Properties
Count
Gets the number of drawing objects in this collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the drawing object at the specified zero-based index.
Declaration
public IDrawingObject this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| IDrawingObject |
Methods
AddClone(IDrawingObject, CloneContext)
Clones source into this drawing collection.
Declaration
public IDrawingObject AddClone(IDrawingObject source, CloneContext context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IDrawingObject | source | The source drawing object. |
| CloneContext | context | The optional cross-presentation clone context. |
Returns
| Type | Description |
|---|---|
| IDrawingObject | The newly created destination drawing object. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
| InvalidOperationException | Thrown when the source was not loaded from a cloneable Open XML drawing part. |
Contains(IDrawingObject)
Determines whether this collection contains drawing.
Declaration
public bool Contains(IDrawingObject drawing)
Parameters
| Type | Name | Description |
|---|---|---|
| IDrawingObject | drawing |
Returns
| Type | Description |
|---|---|
| bool |
GetEnumerator()
Returns an enumerator that iterates through this collection.
Declaration
public IEnumerator<IDrawingObject> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<IDrawingObject> | An enumerator that iterates through this collection. |
Remove(IDrawingObject)
Removes drawing from this collection.
Declaration
public bool Remove(IDrawingObject drawing)
Parameters
| Type | Name | Description |
|---|---|---|
| IDrawingObject | drawing |
Returns
| Type | Description |
|---|---|
| bool |