Inserts a new chart in a Text Control document.
Inserts a chart inline, which means that it is treated in the text like a single character.
[C#] public bool Add(DataVisualization.ChartFrame chartFrame, int textPosition);
[Visual Basic] Public Function Add(ByVal chartFrame As DataVisualization.ChartFrame, ByVal textPosition As Integer) As Boolean
Parameter | Description | |
chartFrame |
Specifies the chart and its frame to add. |
|
textPosition |
Specifies the text position at which the chart is to be inserted. If -1 is specified, the chart is inserted at the current input position. |
Inserts a chart which is anchored to the specified text position. It has the specified horizontal alignment relative to the paragraph into which it is inserted and the textflow is given through the insertionMode parameter. An anchored chart is moved with the text.
[C#] public bool Add(DataVisualization.ChartFrame chartFrame, HorizontalAlignment alignment, int textPosition, FrameInsertionMode insertionMode);
[Visual Basic] Public Function Add(ByVal chartFrame As DataVisualization.ChartFrame, ByVal alignment As HorizontalAlignment, ByVal textPosition As Integer, _ ByVal insertionMode As FrameInsertionMode) As Boolean
Parameter | Description | |||||||||||||||||||
chartFrame |
Specifies the chart and its frame to add. |
|||||||||||||||||||
alignment |
Specifies the chart's horizontal alignment. It can be one of the HorizontalAlignment values:
|
|||||||||||||||||||
textPosition |
Specifies the text position at which the chart is to be inserted. If -1 is specified, the chart is inserted at the current input position. |
|||||||||||||||||||
insertionMode |
Specifies how the text flow is handled. It can be one of the following values of the FrameInsertionMode enumeration:
|
Inserts a chart which is anchored to the specified text position. The specified location is relative to the paragraph into which it is inserted and the textflow is given through the insertionMode parameter. An anchored chart is moved with the text.
[C#] public bool Add(DataVisualization.ChartFrame chartFrame, System.Drawing.Point location, int textPosition, FrameInsertionMode insertionMode);
[Visual Basic] Public Function Add(ByVal chartFrame As DataVisualization.ChartFrame, ByVal location As System.Drawing.Point, ByVal textPosition As Integer, _ ByVal insertionMode As FrameInsertionMode) As Boolean
Parameter | Description | |||||||||||||||||||
chartFrame |
Specifies the chart and its frame to add. |
|||||||||||||||||||
location |
Specifies the location, in twips, at which the chart is to be inserted. |
|||||||||||||||||||
textPosition |
Specifies the text position at which the chart is to be inserted. If -1 is specified, the chart is inserted at the current input position. |
|||||||||||||||||||
insertionMode |
Specifies how the text flow is handled. It can be one of the following values of the FrameInsertionMode enumeration:
|
Inserts a chart which has a fixed geometrical position in the document. This position is specified through a page number and a location on this page and the textflow is given through the insertionMode parameter.
[C#] public bool Add(DataVisualization.ChartFrame chartFrame, int page, System.Drawing.Point location, FrameInsertionMode insertionMode);
[Visual Basic] Public Function Add(ByVal chartFrame As DataVisualization.ChartFrame, ByVal page As Integer, ByVal location As System.Drawing.Point, _ ByVal insertionMode As FrameInsertionMode) As Boolean
Parameter | Description | |||||||||||||||||||
chartFrame |
Specifies the chart and its frame to add. |
|||||||||||||||||||
page |
Specifies the number of a page beginning with 1 where the chart is located. |
|||||||||||||||||||
location |
Specifies the location, in twips, at which the chart is to be inserted. |
|||||||||||||||||||
insertionMode |
Specifies how the text flow is handled. It can be one of the following values of the FrameInsertionMode enumeration:
|
Inserts a chart which has a fixed geometrical position in the document. This position is specified relative to the complete document and the textflow is given through the insertionMode parameter.
[C#] public bool Add(DataVisualization.ChartFrame chartFrame, System.Drawing.Point location, FrameInsertionMode insertionMode);
[Visual Basic] Public Function Add(ByVal chartFrame As DataVisualization.ChartFrame, ByVal location As System.Drawing.Point, _ ByVal insertionMode As FrameInsertionMode) As Boolean
Parameter | Description | |||||||||||||||||||
chartFrame |
Specifies the chart and its frame to add. |
|||||||||||||||||||
location |
Specifies the location, in twips, at which the chart is to be inserted. |
|||||||||||||||||||
insertionMode |
Specifies how the text flow is handled. It can be one of the following values of the FrameInsertionMode enumeration:
|
The return value is true, if the chart could be added. Otherwise, it is false.
>> TXTextControl.DataVisualization.ChartCollection.CopyTo Method