Share via


Script.Shape Property

Returns a Shape object or InlineShape object, depending on the Microsoft Office host application.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
ReadOnly Property Shape As Object
    Get
'Usage
Dim instance As Script
Dim value As Object

value = instance.Shape
Object Shape { get; }

Property Value

Type: System.Object

Remarks

The Shape property returns a Shape object in Microsoft Excel and PowerPoint. In Word, the Shape property returns a Shape object if the script anchor is floating; if it’s an inline anchor, however, this property returns an InlineShape object.

See Also

Reference

Script Interface

Script Members

Microsoft.Office.Core Namespace