// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (WordsDocument doc = Document.Load<WordsDocument>(@"D:\test.docx"))
{
foreach (WordsSection section in doc.Sections)
{
foreach (WordsShape shape in section.Shapes)
{
if (shape.HeaderFooter != null)
{
Console.WriteLine("In header/footer");
}
Console.WriteLine(shape.ShapeType);
Console.WriteLine(shape.Width);
Console.WriteLine(shape.Height);
Console.WriteLine(shape.IsWordArt);
Console.WriteLine(shape.RotateAngle);
Console.WriteLine(shape.AlternativeText);
Console.WriteLine(shape.Name);
Console.WriteLine(shape.X);
Console.WriteLine(shape.Y);
Console.WriteLine(shape.Text);
if (shape.Image != null)
{
Console.WriteLine(shape.Image.Width);
Console.WriteLine(shape.Image.Height);
Console.WriteLine(shape.Image.GetBytes().Length);
}
Console.WriteLine(shape.HorizontalAlignment);
Console.WriteLine(shape.VerticalAlignment);
Console.WriteLine(shape.RelativeHorizontalPosition);
Console.WriteLine(shape.RelativeVerticalPosition);
}
}
}