usmanazizgroupdocs
4/17/2017 - 9:37 AM

Documents-GetInformationOfWorksheetBackgrounds.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As CellsDocument = Document.Load(Of CellsDocument)(Utilities.MapSourceFilePath(FilePath))
    For Each worksheet As CellsWorksheet In doc.Worksheets
        If worksheet.BackgroundImage IsNot Nothing Then
            Console.WriteLine(worksheet.BackgroundImage.Width)
            Console.WriteLine(worksheet.BackgroundImage.Height)
            Console.WriteLine(worksheet.BackgroundImage.GetBytes().Length)
        End If
    Next
End Using