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
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
chặn > bình luận > WorkspaceComment > setMovable
Thiết lập xem nhận xét có thể di chuyển hay không.
Chữ ký:
setMovable(movable: boolean): void;
Tham số
Thông số |
Loại |
Mô tả |
có thể di chuyển |
boolean |
|
Trường hợp trả lại hàng:
void
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-08-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-08-27 UTC."],[[["The `comments.WorkspaceComment.setMovable()` method determines if a workspace comment can be moved or not by the user."],["This method accepts a single boolean parameter, `movable`, indicating whether the comment should be movable (true) or not (false)."],["Calling `setMovable()` with the desired boolean value modifies the movability of the workspace comment."]]],["The `setMovable()` method, part of the `WorkspaceComment` class, determines if a comment can be moved. It accepts a single boolean parameter, `movable`. If `movable` is true, the comment can be moved; otherwise, it cannot. The method's return type is void, indicating it doesn't produce any output value but modifies the comment's behavior directly.\n"]]