[]
Gets the number of IBackgroundPicture objects in this collection.
Use this property to determine how many background pictures are currently associated with the worksheet.
int Count { get; }
ReadOnly Property Count As Integer
IBackgroundPictures backgroundPictures = worksheet.BackgroundPictures;
string imagePath = CreateSampleImageFile();
try
{
backgroundPictures.AddPicture(imagePath, 12, 18, 160, 90);
}
finally
{
if (File.Exists(imagePath))
{
File.Delete(imagePath);
}
}
int count = backgroundPictures.Count;