[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IBackgroundPictures.Count

Count Property

Count

Gets the number of IBackgroundPicture objects in this collection.

Use this property to determine how many background pictures are currently associated with the worksheet.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
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;