TextFrame.DeleteText Method
Deletes the text associated with the specified shape.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub DeleteText
'Usage
Dim instance As TextFrame
instance.DeleteText()
void DeleteText()
Examples
If shape two on myDocument contains text, this example deletes the text.
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes(2).TextFrame.DeleteText