Agregue un título a una tabla o figura en OpenXml
Estoy tratando de crear esta estructura en OpenXml:
<P>
<Table />
<Caption>Table 1 - Some Text 1 </Caption>
<Picture />
<Caption>Figure 1 - Some Text 2 </Caption>
</P>
En términos de código tengo:
var currentLine = new Paragraph();
currentLine.AppendChild(new Run(elem)); -> Where the elem is Table
...
currentLine.AppendChild(new Run(elem2)); -> Where the elem2 is Drawing
Así que solo pierdo la forma de agregar títulos, los mismos que puedo hacer en Referencias de MS Word-> Insertar título.
Alguna información sobre cómo lograr esto sería muy apreciada.
Rui