Index Section

I would like to know, How index of the section is obtained where I am
read/writing. (DocumentBuilder)
example;

builder.Write(valor)
x = index Current;
Dim seccion As Aspose.Word.Section = documento.Sections.Item(X)

Thanks,

Obtaining index of the current section from DocumentBuilder is not possible at the moment. It is supposed to be the other way around: you know which section you want to write into and navigate DocumentBuilder to it.

Let me know if you cannot proceed without this feature.

Hello, is it now possible to obtain the current section index ?

Sincerely.

@aaronArchest You can use NodeCollection.IndexOf method to get index of section:

int sectIndex = doc.Sections.IndexOf(sect);
1 Like