Share via


ShapeRange.AlternativeText Property

Returns or sets the alternative text associated with a shape in a Web presentation. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property AlternativeText As String
    Get
    Set
'Usage
Dim instance As ShapeRange
Dim value As String

value = instance.AlternativeText

instance.AlternativeText = value
string AlternativeText { get; set; }

Property Value

Type: System.String
String

Examples

The following example sets the alternative text for the selected shape in the active window. The selected shape is a picture of a mallard duck.

ActiveWindow.Selection.ShapeRange.AlternativeText= "This is a mallard duck."

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace