Adicione uma legenda a uma tabela ou figura no OpenXml
Estou tentando criar essa estrutura no OpenXml:
<P>
<Table />
<Caption>Table 1 - Some Text 1 </Caption>
<Picture />
<Caption>Figure 1 - Some Text 2 </Caption>
</P>
Em termos de código eu tenho:
var currentLine = new Paragraph();
currentLine.AppendChild(new Run(elem)); -> Where the elem is Table
...
currentLine.AppendChild(new Run(elem2)); -> Where the elem2 is Drawing
Então, eu só sinto falta da maneira de adicionar legendas, as mesmas legendas que eu posso fazer no MS Word References-> Insert Caption.
Algumas informações sobre como fazer isso seriam muito apreciadas.
Rui