GridDimensions
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ỉ định kích thước của một lưới pixel.
Biểu diễn dưới dạng JSON |
{
"width": integer,
"height": integer
} |
Trường |
width |
integer
Chiều rộng của lưới, tính bằng pixel.
|
height |
integer
Chiều cao của lưới, tính bằng pixel.
|
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: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eDefines a rectangular area using pixel measurements for width and height.\u003c/p\u003e\n"],["\u003cp\u003eUses JSON format with "width" and "height" fields to specify the grid dimensions.\u003c/p\u003e\n"],["\u003cp\u003eBoth width and height are represented as integers indicating the pixel count.\u003c/p\u003e\n"]]],[],null,["# GridDimensions\n\nSpecifies the dimensions of a pixel grid.\n\n| JSON representation |\n|-------------------------------------------------|\n| ``` { \"width\": integer, \"height\": integer } ``` |\n\n| Fields ||\n|----------|----------------------------------------------|\n| `width` | `integer` The width of the grid, in pixels. |\n| `height` | `integer` The height of the grid, in pixels. |"]]