Class BorderStyle
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
테두리스타일
위젯에 적용할 수 있는 전체 테두리 스타일을 나타내는 클래스입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.BorderStyle.NO_BORDER
입니다.
자세한 문서
setCornerRadius(radius)
테두리의 모서리 반지름을 설정합니다(예: 8).
매개변수
이름 | 유형 | 설명 |
radius | Integer | 테두리에 적용할 모서리 반경입니다. |
리턴
BorderStyle
: 연결을 위한 객체입니다.
setStrokeColor(color)
테두리의 색상을 설정합니다.
매개변수
이름 | 유형 | 설명 |
color | String | 테두리에 적용할 #RGB 형식의 색상입니다. |
리턴
BorderStyle
: 연결을 위한 객체입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eBorderStyle\u003c/code\u003e objects define the style of borders applied to widgets, including corner radius, color, and type.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize border styles using methods like \u003ccode\u003esetCornerRadius()\u003c/code\u003e, \u003ccode\u003esetStrokeColor()\u003c/code\u003e, and \u003ccode\u003esetType()\u003c/code\u003e, which allow you to specify the desired attributes.\u003c/p\u003e\n"],["\u003cp\u003eEach customization method returns the \u003ccode\u003eBorderStyle\u003c/code\u003e object, enabling chained method calls for efficient styling.\u003c/p\u003e\n"],["\u003cp\u003eBorder attributes such as corner radius and stroke color are specified using integers and RGB color strings respectively, providing flexibility in design.\u003c/p\u003e\n"],["\u003cp\u003eBorder types are selected from the \u003ccode\u003eBorderType\u003c/code\u003e enum, which offers predefined border styles for easy implementation.\u003c/p\u003e\n"]]],[],null,["# Class BorderStyle\n\nBorderStyle\n\nA class that represents a complete border style that can be applied to widgets.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.BorderStyle.NO_BORDER`. \n\n### Methods\n\n| Method | Return type | Brief description |\n|------------------------------------------------------|------------------|------------------------------------------------------|\n| [setCornerRadius(radius)](#setCornerRadius(Integer)) | [BorderStyle](#) | Sets the corner radius of the border, for example 8. |\n| [setStrokeColor(color)](#setStrokeColor(String)) | [BorderStyle](#) | Sets the color of the border. |\n| [setType(type)](#setType(BorderType)) | [BorderStyle](#) | Sets the type of the border. |\n\nDetailed documentation\n----------------------\n\n### `set``Corner``Radius(radius)`\n\nSets the corner radius of the border, for example 8.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|-----------|------------------------------------------------|\n| `radius` | `Integer` | The corner radius to be applied to the border. |\n\n#### Return\n\n\n[BorderStyle](#) --- This object, for chaining.\n\n*** ** * ** ***\n\n### `set``Stroke``Color(color)`\n\nSets the color of the border.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------|----------|-------------------------------------------------------|\n| `color` | `String` | The color in #RGB format to be applied to the border. |\n\n#### Return\n\n\n[BorderStyle](#) --- This object, for chaining.\n\n*** ** * ** ***\n\n### `set``Type(type)`\n\nSets the type of the border.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|---------------------------------------------------------------|------------------|\n| `type` | [BorderType](/apps-script/reference/card-service/border-type) | The border type. |\n\n#### Return\n\n\n[BorderStyle](#) --- This object, for chaining."]]