Thanks for your inquiry. Please note that there is no API which return the node ID. The getShapeId_IShape method is not public. This method is for internal use of Aspose.Words. I suggest you please read about Aspose.Words DOM from here:
Thanks for your inquiry. Aspose.Words supports the Shape. AlternativeText which get or set the alternative text ( description ) of shape. Please use Shape.AlternativeText. See the attached image for the detail of alternative text ( description ) of shape
Document doc = **new** Document( *MyDir* + "in.docx"); Shape shape = (Shape)doc.getChild(NodeType. *SHAPE* , 0, **true** ); shape.setAlternativeText("Shape 1"); doc.save( *MyDir* + "Out.docx");
Starting from Aspose.Words 16.3, you can set and get the title of shape using Shape.Title property. Following code example shows how to set the title of shape object.
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Create test shape Shape shape = new Shape(doc, ShapeType.CUBE); shape.setWidth(431.5); shape.setHeight(346.35); shape.setTitle("Alt Text Title"); builder.insertNode(shape);