DhBaseContainer.findElement

Overview | Methods | This Package | All Packages

DhBaseContainer.findElement

Locates the child element with the specified peer, ID, index, or DhElement object.

Syntax

public DhElement findElement( IUnknown peer )

public DhElement findElement( String ID )

public DhElement findElement( int index )

public int findElement( DhElement e )

Parameters

peer

A reference to the peer object.

ID

The ID value of the element to find.

index

The ordinal position of the child element to return.

e

The DhElement child element to retrieve the index of.

Exceptions

DhElementNotFoundException thrown if a suitable child element is not found.

Return Value

Returns a child element, or returns null if one is not located.