Image.AlternativeTextDescription
Image.AlternativeTextDescription property
Gets or sets a body an alternative text for the image.
public string AlternativeTextDescription { get; set; }
Examples
Shows how to set text description for an image.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Images();
var document = new Document();
var page = new Page(document);
var image = new Image(document, dataDir + "image.jpg")
{
AlternativeTextTitle = "This is an image's title!",
AlternativeTextDescription = "And this is an image's description!"
};
page.AppendChildLast(image);
document.AppendChildLast(page);
dataDir = dataDir + "ImageAlternativeText_out.one";
document.Save(dataDir);
See Also
- class Image
- namespace Aspose.Note
- assembly Aspose.Note