usmanazizgroupdocs
4/17/2017 - 9:36 AM

Documents-GetShapesInformationPowerPoint.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As SlidesDocument = Document.Load(Of SlidesDocument)(Utilities.MapSourceFilePath(FilePath))
    For Each slide As SlidesSlide In doc.Slides
        For Each shape As SlidesShape In slide.Shapes
            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.Name)
            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.Text)
            Console.WriteLine(shape.Id)
            Console.WriteLine(shape.ShapeType)
            Console.WriteLine(shape.ZOrderPosition)
        Next
    Next
End Using