Bản khảo sát nghiên cứu: Cho chúng tôi biết trải nghiệm của bạn khi sử dụng Blockly
Bắt đầu khảo sát
chặn > IToolbox > getWidth
Lấy chiều rộng của hộp công cụ.
Chữ ký:
getWidth(): number;
Trường hợp trả lại hàng:
số
Chiều rộng của hộp công cụ.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-20 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-20 UTC."],[[["The `getWidth()` method is part of the `IToolbox` interface in Blockly and is used to retrieve the width of the toolbox."],["It returns a numerical value representing the width of the toolbox."]]],["The `getWidth` method, part of the `IToolbox` interface, retrieves the toolbox's width. It is a method that takes no arguments and returns a numerical value. This returned number represents the width of the toolbox in an unspecified unit. The method's signature, `getWidth(): number;`, specifies this structure.\n"]]