How can I setthe font as hidden for Section break using interop C#

Gunjan Arora 41 Reputation points
2022-08-09T12:11:26.447+00:00

I have a section after which I have multiple section breaks which span across pages . I want to make the font hidden for the section breaks
Below is the pictorial representation of the section breaks
Currently my code looks something like this
app.Selection.Range.Find.Excecute(FindText: SectionBreak)
if the above condition is true

then I am setting
app.Selection.Range.Characters.Last.Font.Hidden =1;

But this is not working and also I need to iterate till the sectionbreak if present and make them hidden as well until we find a text content.

Please let me know how can we achieve it

229370-image.png

229543-image.png

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,309 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,532 questions
0 comments No comments
{count} votes