TXTextControl.DataVisualization.DrawingCollection.GetItem Method

Gets a particular drawing from the collection.

GetItem()

Gets the drawing selected by the user.

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

GetItem(Int32)

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

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

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

GetItem(String)

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

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

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

Return Value

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

See Also