Gets a particular subtextpart from the collection.

GetItem()

public SubTextPart GetItem();
Public Function GetItem() As SubTextPart

GetItem(String)

public SubTextPart GetItem(string name);
Public Function GetItem(ByVal name As String) As SubTextPart

GetItem(Int)

public SubTextPart GetItem(int id);
Public Function GetItem(ByVal id As Integer) As SubTextPart

Parameters

Parameter Description
name Specifies the textpart's name set with the Name property. The method returns null if a textpart with the specified name does not exist.
id Specifies the textpart's identifier. The method returns null if a textpart with the specified identifier does not exist.

Return Value

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