Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / Shape Class / AddTextFrame Method
The text frame content.
The text frame content style.

In This Topic
    AddTextFrame Method
    In This Topic
    Adds a text frame to this shape.

    Note that some geometries do not allow text frames (see Extensions.TextFrameSupported). If GeometryType of this shape does not support text frames, an exception will be thrown.

    Syntax
    'Declaration
     
    Public Function AddTextFrame( _
       Optional ByVal text As System.String, _
       Optional ByVal style As Style _
    ) As TextFrame
    public TextFrame AddTextFrame( 
       System.string text,
       Style style
    )

    Parameters

    text
    The text frame content.
    style
    The text frame content style.

    Return Value

    The added TextFrame.
    See Also