Enum TabType

TabType

सभी टैब टाइप की सूची.

किसी enum को कॉल करने के लिए, आपको उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल करना होगा. उदाहरण के लिए, DocumentApp.TabType.TAB.

दिए गए एलिमेंट के टाइप की जांच करने के लिए, TabType की गिनती का इस्तेमाल करें. उदाहरण के लिए:

var tab = DocumentApp.getActiveDocument().getTab('t.0');
// 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_TABEnumDocumentTab से जुड़ा टाइप.