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

Class PictureCollection

A typed collection of PictureShape objects on a worksheet, providing convenient access to pictures without filtering the general WorksheetShapeCollection.

Inheritance
object
PictureCollection
Implements
IEnumerable<PictureShape>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class PictureCollection : IEnumerable<PictureShape>, IEnumerable

Properties

Count

Gets the number of pictures on the worksheet.

Declaration
public int Count { get; }
Property Value
Type Description
int

this[int]

Gets the picture at the specified index.

Declaration
public PictureShape this[int index] { get; }
Parameters
Type Name Description
int index
Property Value
Type Description
PictureShape

Methods

Add(string, string)

Adds a picture from a file, anchored at the specified cell with the image's natural size.

Declaration
public PictureShape Add(string filePath, string anchorCell)
Parameters
Type Name Description
string filePath
string anchorCell
Returns
Type Description
PictureShape

Add(string, string, Position, Size)

Adds a picture from a file with explicit offset and size.

Declaration
public PictureShape Add(string filePath, string anchorCell, Position cellOffset, Size size)
Parameters
Type Name Description
string filePath
string anchorCell
Position cellOffset
Size size
Returns
Type Description
PictureShape

GetEnumerator()

Returns an enumerator that iterates through the pictures.

Declaration
public IEnumerator<PictureShape> GetEnumerator()
Returns
Type Description
IEnumerator<PictureShape>

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