add_text_frame method

add_text_frame

Adds a new TextFrame to a shape. If shape already has TextFrame then simply changes its text.

def add_text_frame(self, text):
    ...
ParameterTypeDescription
textstrDefault text for a new TextFrame.

Examples

The following sample code shows how to add watermark text in PowerPoint Presentation.

        The following example shows how to create Text Box on Slide.

        The following example shows how to add column in Text Box.

See Also