M
M
mendaxf2019-02-02 08:47:04
C++ / C#
mendaxf, 2019-02-02 08:47:04

How to remove Bold and similar properties in openXML?

Please tell me how you can remove bold in openxml, sometimes in the text there is bold with the val=false property, in fact I want to remove it for this purpose, I use runbody.RunProperties.ChildElements.FirstOrDefault(x => runbody.RunProperties.bold != null && x.GetType() == runbody.RunProperties.bold)?.Remove(); , but without success because an ObjectDisposedException appears

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question