Shape.HasTable Property
Returns whether the specified shape is a table. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property HasTable As MsoTriState
Get
'Usage
Dim instance As Shape
Dim value As MsoTriState
value = instance.HasTable
MsoTriState HasTable { get; }
Property Value
Type: Microsoft.Office.Core.MsoTriState
MsoTriState
Remarks
The value of the HasTable property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The specified shape is not a table. |
msoTrue |
The specified shape is a table. |
Examples
This example checks the currently selected shape to see if it is a table. If it is, the code sets the width of column one to one inch (72 points).
With ActiveWindow.Selection.ShapeRange
If .HasTable= msoTrue Then
.Table.Columns(1).Width = 72
End If
End With