Share via


Cell.Shape Property

Returns a CanvasShapes object that represents a shape in a table cell. Read-only.

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

Syntax

'Declaration
ReadOnly Property Shape As Shape
    Get
'Usage
Dim instance As Cell
Dim value As Shape

value = instance.Shape
Shape Shape { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.Shape
Shape

Examples

This example creates a 3x3 table in a new presentation and inserts a four-pointed star into the first cell of the table.

With Presentations.Add

    With .Slides.Add(1, ppLayoutBlank)

        .Shapes.AddTable(3, 3).Select

        .Shapes(1).Table.Cell(1, 1).Shape.AutoShapeType = msoShape4pointStar

    End With

End With

See Also

Reference

Cell Interface

Cell Members

Microsoft.Office.Interop.PowerPoint Namespace