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에 해당하는 유형