TXTextControl.FrameCollection.GetItem Method

Gets a particular image, text frame, chart, barcode or drawing from the collection.

GetItem()

Gets the image, text frame, chart, barcode or drawing selected by the user.

[C#]
public FrameBase GetItem();
[Visual Basic]
Public Function GetItem() As FrameBase

GetItem(Int32)

Gets the image, text frame, chart, barcode or drawing with the specified identifier. An identifier can be set with the FrameBase.ID property.

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

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

GetItem(String)

Gets the image, text frame, chart, barcode or drawing with the specified name. A name can be set with the FrameBase.Name property.

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

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

Return Value

The return value is null, if an object with the specified parameters could not be found. Otherwise, it is an object of the type Image, TextFrame, ChartFrame or BarcodeFrame.

See Also