// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (CellsDocument doc = Document.Load<CellsDocument>(Utilities.MapSourceFilePath (FilePath)))
{
foreach (CellsWorksheet worksheet in doc.Worksheets)
{
foreach (CellsHeaderFooter headerFooter in worksheet.HeadersFooters)
{
Console.WriteLine(headerFooter.HeaderFooterType);
foreach (CellsHeaderFooterSection section in headerFooter.Sections)
{
Console.WriteLine(section.SectionType);
if (section.Image != null)
{
Console.WriteLine(section.Image.Width);
Console.WriteLine(section.Image.Height);
Console.WriteLine(section.Image.GetBytes().Length);
}
Console.WriteLine(section.Script);
}
}
}
}