[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eBorderStyle\u003c/code\u003e in Google Apps Script is used to define the style of borders applied to a range of cells within a spreadsheet.\u003c/p\u003e\n"],["\u003cp\u003eYou can apply borders to the top, bottom, left, right, vertical, and horizontal edges of a range.\u003c/p\u003e\n"],["\u003cp\u003eBorder styles include dotted, dashed, solid (in varying thicknesses), and double lines.\u003c/p\u003e\n"],["\u003cp\u003eTo set a border style, you need to call \u003ccode\u003eRange.setBorder()\u003c/code\u003e with arguments specifying the desired style and colors.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBorderStyle\u003c/code\u003e is an enum within the \u003ccode\u003eSpreadsheetApp\u003c/code\u003e class and its properties (like \u003ccode\u003eDOTTED\u003c/code\u003e or \u003ccode\u003eSOLID\u003c/code\u003e) are accessed as \u003ccode\u003eSpreadsheetApp.BorderStyle.DOTTED\u003c/code\u003e.\u003c/p\u003e\n"]]],["Border styles can be applied to a range using `Range.setBorder()`, specifying top, left, bottom, right, vertical, and horizontal borders, along with color and style. The available border styles, accessed via `SpreadsheetApp.BorderStyle`, include `DOTTED`, `DASHED`, `SOLID`, `SOLID_MEDIUM`, `SOLID_THICK`, and `DOUBLE`. Each style corresponds to a different line appearance, ranging from dotted to thick solid lines, as well as double lines.\n"],null,["BorderStyle\n\nStyles that can be set on a range using [Range.setBorder(top, left, bottom, right, vertical, horizontal, color, style)](/apps-script/reference/spreadsheet/range#setBorder(Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,String,BorderStyle)).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.BorderStyle.DOTTED`. \n\nProperties\n\n| Property | Type | Description |\n|----------------|--------|----------------------------|\n| `DOTTED` | `Enum` | Dotted line borders. |\n| `DASHED` | `Enum` | Dashed line borders. |\n| `SOLID` | `Enum` | Thin solid line borders. |\n| `SOLID_MEDIUM` | `Enum` | Medium solid line borders. |\n| `SOLID_THICK` | `Enum` | Thick solid line borders. |\n| `DOUBLE` | `Enum` | Two solid line borders. |"]]