Copy link to clipboard
Copied
How can i remove graphics from Rectangle without untagging this Rectangle?
This command:
myRectangle.graphics.everyItem().remove()
leads to remove tag from Rectangle.
How can I remove graphic and preserve tags?
Copy link to clipboard
Copied
var xElt = rect.associatedXMLElement;
if ( xElt ) {
var xAttr = xElt.xmlAttributes.itemByName("href");
xAttr.isValid && xAttr.remove();
xElt.xmlContent.remove();
rect.markup( xElt );
}
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more