We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting the WSection from a ITextBody object.

I managed to get the WSection from an ITextBody object by querying its Owner property. Is this always going to be the WSection object (seems so from the class diagram).

Would be handy to add a OwnerSection property to ITextBody!

Thanks,

Wout


1 Reply

BP Bhuvaneswari P Syncfusion Team August 19, 2008 05:17 AM UTC

Hi Wout,

Thank you for your interest in Syncfusion products.

No, it is not possible to include such property. Since WTextBody represent section and also Table cell. WTableCell class represents a table cell in a Word document. WtableCell’s base class is WTextBody, it means that WTableCell object can hold paragraphs. So, if we create OwnerSection property, then it will confuse the user in case of TableCell. It is not possible to include this property.
WTextBody->Cell->Table->WTextBody->Section

Please let me know if you have any questions.

Best Regards,
Bhuvana






Loader.
Live Chat Icon For mobile
Up arrow icon