TXTextControl.DataVisualization.ChartCollection.GetItem Method

Gets a particular chart from the collection.

GetItem()

Gets the chart selected by the user.

[C#]
public DataVisualization.ChartFrame GetItem();
[Visual Basic]
Public Function GetItem() As DataVisualization.ChartFrame

GetItem(Int32)

Gets the chart with the specified identifier. An id can be set with the ID property.

[C#]
public DataVisualization.ChartFrame GetItem(int id);
[Visual Basic]
Public Function GetItem(ByVal id As Integer) As DataVisualization.ChartFrame
Parameter Description
id

Specifies the chart's identifier. The method returns null if a chart with the specified identifier does not exist.

GetItem(String)

Gets the chart with the specified name. A name can be set with the Name property.

[C#]
public DataVisualization.ChartFrame GetItem(string name);
[Visual Basic]
Public Function GetItem(ByVal name As String) As DataVisualization.ChartFrame
Parameter Description
name

Specifies the chart's name. The method returns null if a chart with the specified name does not exist.

Return Value

The return value is null, if a chart with the specified parameters could not be found. Otherwise, it is an object of the type DataVisualization.ChartFrame.

See Also