Inserts a new text frame in a Text Control document.

Add(TextFrame, Int)

public bool Add(TextFrame textFrame, int textPosition);
Public Function Add(ByVal textFrame As TextFrame, ByVal textPosition As Integer) As Boolean

Add(TextFrame, HorizontalAlignment, Int, TextFrameInsertionMode)

public bool Add(TextFrame textFrame, HorizontalAlignment alignment, int textPosition, TextFrameInsertionMode insertionMode);
Public Function Add(ByVal textFrame As TextFrame, ByVal alignment As HorizontalAlignment, _
  ByVal textPosition As Integer, ByVal insertionMode As TextFrameInsertionMode) As Boolean

Add(TextFrame, System.Drawing.Point, Int, TextFrameInsertionMode)

public bool Add(TextFrame textFrame, System.Drawing.Point location, int textPosition, TextFrameInsertionMode insertionMode);
Public Function Add(ByVal textFrame As TextFrame, ByVal location As System.Drawing.Point, ByVal textPosition As Integer, _
  ByVal insertionMode As TextFrameInsertionMode) As Boolean

Add(TextFrame, Int, System.Drawing.Point, TextFrameInsertionMode)

public bool Add(TextFrame textFrame, int page, System.Drawing.Point location, TextFrameInsertionMode insertionMode);
Public Function Add(ByVal textFrame As TextFrame, ByVal page As Integer, ByVal location As System.Drawing.Point, _
  ByVal insertionMode As TextFrameInsertionMode) As Boolean

Add(TextFrame, System.Drawing.Point, TextFrameInsertionMode)

public bool Add(TextFrame textFrame, System.Drawing.Point location, TextFrameInsertionMode insertionMode);
Public Function Add(ByVal textFrame As TextFrame, ByVal location As System.Drawing.Point, _
  ByVal insertionMode As TextFrameInsertionMode) As Boolean

Add(TextFrame, TextFrameInsertionMode)

public bool Add(TextFrame textFrame, TextFrameInsertionMode insertionMode);
Public Function Add(ByVal textFrame As TextFrame, ByVal insertionMode As TextFrameInsertionMode) As Boolean

Parameters

Parameter Description
textFrame Specifies the text frame to add.
textPosition Specifies the text position at which the text frame is to be inserted. If -1 is specified, the text frame is inserted at the current input position.
alignment Specifies the text frame's horizontal alignment. It can be one of the HorizontalAlignment values:
Event Description
Left The text frame is left aligned relative to the paragraph to which it is anchored.
Right The text frame is right aligned relative to the paragraph to which it is anchored.
Centered The text frame is centered relative to the paragraph to which it is anchored.
Justify This value is not possible for the alignment of text frames.
location Specifies the location, in twips, at which the text frame is to be inserted. This is a location relative to the top left corner either of a page or of a paragraph.
insertionMode Specifies how the text flow is handled. It can be one of the values of the TextFrameInsertionMode enumeration.
page Specifies the number of a page beginning with 1 where the text frame is located.

Return Value

The return value is true, if the text frame could be added. Otherwise, it is false.