DocWord object
DocBox object
DocLine object
Retrieves the nearest right neighbor if it exists. The type of object that can be returned is decided by the Type parameter (see Document content constants). Several types can be included in one search by adding the type values. The pDistance parameter will return the distance in mm to the returned object.
If no object is found, pDistance will be negative and the method returns a NULL object (Nothing).