Aspose words java - set appearance StructuredDocumentTag

Hi,
Could you please tell me how I can change appearance of a structuredDocumentTag in java ? I saw in api reference that getter and setter exist (getAppearance and setAppearance) with constant SdtAppearance but I can’t access it.
Source : SdtAppearance | Aspose.Words for Java

I’m working with version 21.9 of com.aspose.words

Thank you !

Best Regards

@amuyldermans

Following code example shows how to use StructuredDocumentTag.Appearance property. Could you please share some more detail about the issue that you are facing?

Document document = new Document(MyDir + "input.docx");
for(StructuredDocumentTag sdt :(Iterable<StructuredDocumentTag >)document.getChildNodes(NodeType.STRUCTURED_DOCUMENT_TAG, true))
{
	sdt.setAppearance(SdtAppearance.TAGS);	
}
document.save(MyDir + "21.10.docx");

@tahir.manzoor

Thanks a lot for your answer.
The problen was my version of Aspose. I reloaded my project with version 21.1 of com.aspose.words and I got the reference to the property…
I was previously in version 21.9

Best Regards

@amuyldermans

Have your problem solved? We suggest you please use the latest version of Aspose.Words for Java 21.10.

Good morning Tahir,

Yes my problem is solved with version 21.10.

Thanks a lot for your support

Best Regards

image001.png (1.87 KB)