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.
GlyphType
Bảng liệt kê các loại ký tự được hỗ trợ.
Để gọi một enum, bạn phải gọi lớp, tên và thuộc tính gốc của lớp đó. Ví dụ:
DocumentApp.GlyphType.BULLET.
Sử dụng giá trị liệt kê GlyphType để đặt loại dấu đầu dòng cho các mục trong danh sách.
var body = DocumentApp.getActiveDocument().getBody();
// Insert at list item, with the default nesting level of zero.
body.appendListItem("Item 1");
// Append a second list item, with a nesting level of one, indented one inch.
// The two items will have different bullet glyphs.
body.appendListItem("Item 2").setNestingLevel(1).setIndentStart(72)
.setGlyphType(DocumentApp.GlyphType.SQUARE_BULLET);
Thuộc tính
Tài sản
Loại
Nội dung mô tả
BULLET
Enum
Dấu đầu dòng mặc định, hình tròn và đã tô màu nền.