Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DrawingObject.AltText Property

Gets or sets the alternative text for a shape.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

string AltText { get; set; }

#Property Value

Type Description
String

The descriptive text associated with a shape.

#Remarks

The AltText property contains all alternative text for a shape (a combination of Title and Description property values).

If you assign text to the AltText property, it is copied to the Description property and the Title property is set to null.

The following code snippet adds Alt Text to a shape:

Document document = wordProcessor.Document;
// Create a callout and specify its alternative text.
Shape shape = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.AccentLineCallout1);
shape.AltText = "A callout with an accent bar and a straight callout line.";
See Also