แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ScrollbarPair > setY
ตั้งค่าแฮนเดิลของแถบเลื่อนแนวตั้งให้อยู่ในตำแหน่งที่ต้องการในพิกเซล CSS เมื่อเทียบกับระดับบนสุด
ลายเซ็น:
setY(y: number): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
y |
ตัวเลข |
ค่าการเลื่อนแนวตั้ง |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["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"]]