Inserts a new drawing in a Text Control document.

Add(DataVisualization.DrawingFrame, Int)

public bool Add(DataVisualization.DrawingFrame drawingFrame, int textPosition);
Public Function Add(ByVal drawingFrame As DataVisualization.DrawingFrame, ByVal textPosition As Integer) As Boolean

Add(DataVisualization.DrawingFrame, HorizontalAlignment, Int, FrameInsertionMode)

public bool Add(DataVisualization.DrawingFrame drawingFrame, HorizontalAlignment alignment, int textPosition, FrameInsertionMode insertionMode);
Public Function Add(ByVal drawingFrame As DataVisualization.DrawingFrame, ByVal alignment As HorizontalAlignment, ByVal textPosition As Integer, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.DrawingFrame, System.Drawing.Point, Int, FrameInsertionMode)

public bool Add(DataVisualization.DrawingFrame drawingFrame, System.Drawing.Point location, int textPosition, FrameInsertionMode insertionMode);
Public Function Add(ByVal drawingFrame As DataVisualization.DrawingFrame, ByVal location As System.Drawing.Point, ByVal textPosition As Integer, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.DrawingFrame, Int, System.Drawing.Point, FrameInsertionMode)

public bool Add(DataVisualization.DrawingFrame drawingFrame, int page, System.Drawing.Point location, FrameInsertionMode insertionMode);
Public Function Add(ByVal drawingFrame As DataVisualization.DrawingFrame, ByVal page As Integer, ByVal location As System.Drawing.Point, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.DrawingFrame, System.Drawing.Point, FrameInsertionMode)

public bool Add(DataVisualization.DrawingFrame drawingFrame, System.Drawing.Point location, FrameInsertionMode insertionMode);
Public Function Add(ByVal drawingFrame As DataVisualization.DrawingFrame, ByVal location As System.Drawing.Point, _
  ByVal insertionMode As FrameInsertionMode) As Boolean

Add(DataVisualization.DrawingFrame, FrameInsertionMode)

public bool Add(DataVisualization.DrawingFrame drawingFrame, FrameInsertionMode insertionMode);
Public Function Add(ByVal drawingFrame As DataVisualization.DrawingFrame, ByVal insertionMode As FrameInsertionMode) As Boolean

Parameters

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

Return Value

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