Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
TabType
Enumerasi semua jenis tab.
Untuk memanggil enum, Anda memanggil class, nama, dan properti induknya. Misalnya,
DocumentApp.TabType.TAB.
Gunakan enumerasi TabType untuk memeriksa jenis elemen tertentu, misalnya:
vartab=DocumentApp.getActiveDocument().getActiveTab();//UsegetType()todeterminethetab'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{//TherearecurrentlynotypesotherthanDOCUMENT_TAB.}
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-20 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`."]]],[]]