Class Border
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Borde
Describe el borde alrededor de un elemento.
Documentación detallada
getDashStyle()
Obtiene el DashStyle
del borde.
Volver
DashStyle
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getLineFill()
Obtiene el LineFill
del borde.
Volver
LineFill
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getWeight()
Obtiene el grosor del borde en puntos. Muestra null
si el elemento no tiene un borde.
Volver
Number
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
isVisible()
Obtiene si el borde es visible o no.
Volver
Boolean
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setDashStyle(style)
Establece el DashStyle
del borde.
Si estableces un DashStyle
en un borde transparente, este se hará visible.
Parámetros
Volver
Border
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setTransparent()
Establece el borde como transparente.
Volver
Border
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setWeight(points)
Establece el grosor del borde en puntos.
Si estableces un grosor en un borde transparente, este se hará visible.
Parámetros
Nombre | Tipo | Descripción |
points | Number | |
Volver
Border
Autorización
Las secuencias de comandos que usan este método requieren autorización con uno o más de los siguientes ámbitos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003e\u003ccode\u003eBorder\u003c/code\u003e describes the border around an element and provides methods to manipulate its appearance.\u003c/p\u003e\n"],["\u003cp\u003eYou can get and set the border's dash style, line fill, thickness, and visibility using dedicated methods.\u003c/p\u003e\n"],["\u003cp\u003eSetting a dash style or weight on a transparent border makes it visible.\u003c/p\u003e\n"],["\u003cp\u003eAll methods require authorization with specific scopes for accessing and modifying presentations.\u003c/p\u003e\n"]]],["The document outlines how to interact with an element's border. Key actions include getting the border's `DashStyle`, `LineFill`, weight (thickness), and visibility status. You can set the border's `DashStyle`, make it transparent, or adjust its weight in points. Setting a dash style or weight on a transparent border makes it visible. Each method requires specific authorization scopes. The get weight method returns null if the element does not have a border.\n"],null,["# Class Border\n\nBorder\n\nDescribes the border around an element. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------------------------|\n| [getDashStyle()](#getDashStyle()) | [DashStyle](/apps-script/reference/slides/dash-style) | Gets the [DashStyle](/apps-script/reference/slides/dash-style) of the border. |\n| [getLineFill()](#getLineFill()) | [LineFill](/apps-script/reference/slides/line-fill) | Gets the [LineFill](/apps-script/reference/slides/line-fill) of the border. |\n| [getWeight()](#getWeight()) | `Number` | Gets the thickness of the border in points. |\n| [isVisible()](#isVisible()) | `Boolean` | Gets whether the border is visible or not. |\n| [setDashStyle(style)](#setDashStyle(DashStyle)) | [Border](#) | Sets the [DashStyle](/apps-script/reference/slides/dash-style) of the border. |\n| [setTransparent()](#setTransparent()) | [Border](#) | Sets the border to be transparent. |\n| [setWeight(points)](#setWeight(Number)) | [Border](#) | Sets the thickness of the border in points. |\n\nDetailed documentation\n----------------------\n\n### `get``Dash``Style()`\n\nGets the [DashStyle](/apps-script/reference/slides/dash-style) of the border.\n\n#### Return\n\n\n[DashStyle](/apps-script/reference/slides/dash-style)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Line``Fill()`\n\nGets the [LineFill](/apps-script/reference/slides/line-fill) of the border.\n\n#### Return\n\n\n[LineFill](/apps-script/reference/slides/line-fill)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Weight()`\n\nGets the thickness of the border in points. Returns `null` if the element does not have a\nborder.\n\n#### Return\n\n\n`Number`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `is``Visible()`\n\nGets whether the border is visible or not.\n\n#### Return\n\n\n`Boolean`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `set``Dash``Style(style)`\n\nSets the [DashStyle](/apps-script/reference/slides/dash-style) of the border.\n\nSetting a [DashStyle](/apps-script/reference/slides/dash-style) on a transparent border makes it visible.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------|-------------------------------------------------------|-------------|\n| `style` | [DashStyle](/apps-script/reference/slides/dash-style) | |\n\n#### Return\n\n\n[Border](#)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `set``Transparent()`\n\nSets the border to be transparent.\n\n#### Return\n\n\n[Border](#)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `set``Weight(points)`\n\nSets the thickness of the border in points.\n\nSetting a weight on a transparent border makes it visible.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|----------|-------------|\n| `points` | `Number` | |\n\n#### Return\n\n\n[Border](#)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]