Word.CalendarType enum

Calendar类型。

注解

API 集:WordApiDesktop 1.3

使用方

示例

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/10-content-controls/insert-and-change-date-picker-content-control.yaml

function changeCalendarType(datePicker: Word.DatePickerContentControl) {
    // The calendar type can only be set to a value compatible with the display locale. 
    // For the Japanese locale, valid calendar types are Gregorian and Japan.
    datePicker.dateCalendarType = Word.CalendarType.japan;
}

字段

arabic = "Arabic"

阿拉伯语日历类型。

hebrew = "Hebrew"

希伯来语日历类型。

japan = "Japan"

日语日历类型。

korean = "Korean"

朝鲜语日历类型。

sakaEra = "SakaEra"

Saka Era 日历类型。

taiwan = "Taiwan"

台湾日历类型。

thai = "Thai"

泰国日历类型。

translitEnglish = "TranslitEnglish"

音译的英语日历类型。

translitFrench = "TranslitFrench"

音译的法语日历类型。

umalqura = "Umalqura"

um-al-Qura 日历类型。

western = "Western"

西方日历类型。