• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DrawingObjectCollection

Provides access to the drawing objects contained in a group shape.

Inheritance
object
DrawingObjectCollection
Implements
IEnumerable<IDrawingObject>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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 source is null.

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

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX