I would like to customize my document and i need to find combobox controls, check if property Text is empty or not, and if empty delete this whole line on which control is.
I think that i need loop through all controls, check if it is control which i need, and then check text property. However i can't get Name property of control and i don't know how to delete whole line with my controle.
If the controls have been placed in the document at design time, then they cannot be deleted at run-time. Only controls inserted at run-time can be deleted from a document. The discussion in this MSDN article may be of some assistance.Cindy Meister, VSTO/Word MVP
What kind of combobox controls? (If you don't know, describe the exact steps used to create them in the document.)
Office documents can, depending on the parent application, host many different types (technologies) of controls. Before we can tell you what you need in the object model we require this additional information.Cindy Meister, VSTO/Word MVP
If the controls have been placed in the document at design time, then they cannot be deleted at run-time. Only controls inserted at run-time can be deleted from a document. The discussion in this MSDN article may be of some assistance.Cindy Meister, VSTO/Word MVP