# PtInObject Method

## Applies to

THtmlViewer component

## Declaration

function PtInObject(X, Y: integer; var Obj: TObject): boolean;

## Description

PtInObject determines if the point, (X,Y), is within a particular displayed object. X and Y are THtmlViewer client coordinates, and Obj is the TObject displayed at that coordinate.

Currently, the only objects tested are images (TImageObj). PtInObject may be used to ascertain information about images.