GroupDocsGists
10/19/2017 - 11:08 AM

Documents-GetShapesInformationExcel.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
        For Each shape As CellsShape In worksheet.Shapes
            Console.WriteLine(shape.AutoShapeType)
            Console.WriteLine(shape.MsoDrawingType)
            Console.WriteLine(shape.Text)
            If shape.Image IsNot Nothing Then
                Console.WriteLine(shape.Image.Width)
                Console.WriteLine(shape.Image.Height)
                Console.WriteLine(shape.Image.GetBytes().Length)
            End If
            Console.WriteLine(shape.Id)
            Console.WriteLine(shape.AlternativeText)
            Console.WriteLine(shape.X)
            Console.WriteLine(shape.Y)
            Console.WriteLine(shape.Width)
            Console.WriteLine(shape.Height)
            Console.WriteLine(shape.RotateAngle)
            Console.WriteLine(shape.IsWordArt)
            Console.WriteLine(shape.Name)
        Next
    Next
End Using