We're sorry Aspose doesn't work properply without JavaScript enabled.

# Image properties

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");