با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > IDragTarget > getClientRect
متد IDragTarget.getClientRect().
مستطیل مرزی ناحیه هدف را بر حسب واحد پیکسل نسبت به درگاه نمایش برمیگرداند.
امضا:
getClientRect(): Rect | null;
برمیگرداند:
Rect | تهی
جعبه محدود کننده جزء اگر ناحیه هدف را بکشید، null باید نادیده گرفته شود.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-08 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-01-08 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]