Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
TabType
Es una enumeración de todos los tipos de pestañas.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
DocumentApp.TabType.TAB.
Usa la enumeración TabType para verificar el tipo de un elemento determinado, por ejemplo:
consttab=DocumentApp.getActiveDocument().getActiveTab();// Use getType() to determine the tab's type before casting.if(tab.getType()===DocumentApp.TabType.DOCUMENT_TAB){// It's a document tab, write some text to it.tab.asDocumentTab().setText('Hello World!');}else{// There are currently no types other than DOCUMENT_TAB.}
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-12-22 (UTC)"],[[["`TabType` is an enumeration used to identify different tab types within a Google Doc."],["Currently, `DOCUMENT_TAB` is the only available tab type, representing a document tab that can be interacted with using the `DocumentTab` class."],["You can determine the type of a tab using `getType()` and then perform actions based on its specific type, such as adding text to a `DOCUMENT_TAB`."]]],["The `TabType` enumeration defines the types of tabs within a document. It currently has one property: `DOCUMENT_TAB`, which represents a DocumentTab. To use `TabType`, access it via `DocumentApp.TabType.DOCUMENT_TAB`. The `getType()` method can determine a tab's type, and you should use it for type checking before casting it as a Document Tab with `asDocumentTab()`.\n"]]