Enum TabType
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نوع برگه فهرستی از تمام انواع تبها.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی میکنید. برای مثال، DocumentApp.TabType.TAB .
برای بررسی نوع یک عنصر داده شده، از شمارش TabType استفاده کنید، برای مثال:
const tab = 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.
} خواص
| ملک | نوع | توضیحات |
|---|
DOCUMENT_TAB | Enum | نوع مربوط به Document Tab . |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2026-04-13 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2026-04-13 بهوقت ساعت هماهنگ جهانی."],[],["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"]]