trying to get the vertical location of a paragraph in a word file. See the code below, this line (int paragraphStartPosition = paragraph.Range.Start) does not work. Is there any way to get this or should I move on to something else?
Thanks!
foreach (Section section in doc.Sections)
{
foreach (Paragraph paragraph in section.Paragraphs)
{
// Get the start position of the paragraph
int paragraphStartPosition = paragraph.Range.Start;
// Print the start position of the paragraph
Console.WriteLine($"Start position of paragraph: {paragraphStartPosition}");
}
}