Thanks for your inquiry. The StructuredDocumentTag Class represents a structured document tag (SDT or content control) in a document. The picture contents control f
ills the content control with a single picture.
Please note that Aspose.Words tries to mimic the save behavior as MS Word do. You cannot remove image from picture contents control and keep the picture content control. If you remove image from picture contents control by using MS Word, the empty picture template will exist in the document. Please see the attached image for detail
However, you can set picture contents control data with an empty/template picture by using following code snippet.
10.0pt;font-family:“Courier New”;color:#2B91AF;mso-no-proof:yes”>Document<span style=“font-size:10.0pt;font-family:“Courier New”;mso-no-proof:yes”> document =
NodeCollection sdtNodes =
foreach (StructuredDocumentTag sdt in
(sdt.SdtType == SdtType.Picture)
dml = (DrawingML)sdt.GetChild(NodeType.DrawingML, 0, true);
dml.ImageData.SetImage(MyDir + "Empty