TXTextControl.ImageCollection.GetItem Method

Gets a particular image from the collection.

Introduced: 15.1.

GetItem()

Gets the image selected by the user.

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

GetItem(Int32)

Gets the image with the specified identifier. An identifier can be set with the Image.ID property.

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

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

GetItem(String)

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

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

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

Return Value

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

See Also