WPS 基础接口 > 文字 API 参考 > Application > 属性 > Application.LandscapeFontNames 属性
返回一个 FontNames 对象,该对象包括了所有有效的横向字体的名称。

语法

表达式.LandscapeFontNames

表达式   一个代表 Application 对象的变量。

示例

本示例创建在 FontNames 对象中命名的横向字体名称新文档的排序列表。

示例代码
function ListLandscapeFonts() {
    let docNew = Documents.Add()
    docNew.Content.InsertAfter("Landscape Fonts" + "\n")

    for(let i = 1; i <= LandscapeFontNames.Count; i++) {
        docNew.Content.InsertAfter(LandscapeFontNames.Item(i) + "\n")
    }
                                    
    docNew.Range(docNew.Paragraphs.Item(2).Range.Start, docNew.Paragraphs.Item(docNew.Paragraphs.Count).Range.End).Select()
                                    
    Selection.Sort()
}			

landscape font names


请参阅