Image properties

Received : 2007/12/04 10:45:14
Message : I need to get access to a property of an image. In Word, you can set the alternate text of an image. How would I access this property? This is needed to maintain backwards compatibility.

If it is not available, how could we get added?

This message was posted using Aspose.Live 2 Forum

Hi
Thanks for your inquiry. You can access to this property using Shape.AlternativeText. For exampel see the following code.

Document doc = new Document(@"267_105118_lowkie\in.doc");
NodeCollection collection = doc.GetChildNodes(NodeType.Shape, true);
foreach (Shape shape in collection)
{
    shape.AlternativeText = "This is alternative text";
}
doc.Save(@"267_105118_lowkie\out.doc");

Also see the following link.
https://reference.aspose.com/words/net/aspose.words.drawing/shapebase/
I hope that this will help you.
Best regards.