блочно > IDragTarget > getClientRect
Метод IDragTarget.getClientRect()
Возвращает ограничивающий прямоугольник целевой области перетаскивания в пикселях относительно области просмотра.
Подпись:
getClientRect(): Rect | null;
Возврат:
Прямой | нулевой
Ограничивающая рамка компонента. Значение null, если целевую область перетаскивания следует игнорировать.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-08 UTC.
[null,null,["Последнее обновление: 2025-01-08 UTC."],[[["`IDragTarget.getClientRect()` returns the drag target's bounding box in pixel units, relative to the viewport."],["The returned value is a `Rect` object containing the bounding box dimensions, or `null` if the drag target area should be ignored."]]],["The `getClientRect()` method, part of the `IDragTarget` interface, returns the drag target area's bounding rectangle. This rectangle's dimensions are in pixel units relative to the viewport. The method's output is either a `Rect` object representing the bounding box or `null`. A `null` return value indicates that the drag target area should be disregarded during drag operations.\n"]]