blockly > ScrollbarPair > setY
دسته نوار اسکرول عمودی را در موقعیت خاصی در پیکسل های CSS نسبت به والدینش قرار دهید.
امضا:
setY(y: number): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
y | شماره | مقدار اسکرول عمودی |
برمی گرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["The `ScrollbarPair.setY()` method positions the vertical scrollbar's handle at a specified vertical position (in CSS pixels) within its parent element."],["This method accepts a single parameter, `y`, which is a number representing the desired vertical scroll value."],["Calling `ScrollbarPair.setY()` does not return any value (void)."]]],["The `setY()` method, part of the `ScrollbarPair` class, adjusts the vertical scrollbar's handle position. It accepts one parameter, `y`, a number representing the desired vertical scroll value in CSS pixels. Executing this method repositions the scrollbar's handle relative to its parent element. The method does not return a value.\n"]]