Table of contents
TOC
折叠目录
展开目录

ApplicationSettings.RecentTemplatesListSize 属性 (Visio)ApplicationSettings.RecentTemplatesListSize Property (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

确定在 Microsoft Visio 用户界面中最近使用的模板列表中的条目数。读/写。Determines the number of entries in the Recent Templates list in the Microsoft Visio user interface. Read/write.

语法Syntax

表达式RecentTemplatesListSizeexpression . RecentTemplatesListSize

表达式_一个表示ApplicationSettings对象的变量。_expression A variable that represents an ApplicationSettings object.

返回值Return Value

LongLong

注解Remarks

RecentTemplatesListSize属性的值对应于显示此数目的 ' 最近使用的模板下框中显示高级选项卡上Visio 选项对话框中的设置。若要打开Visio 选项对话框中,单击文件选项卡,单击选项,然后单击高级。最近使用的模板可以显示的最大数量为 12。The value of the RecentTemplatesListSize property corresponds to the setting of the Show this number of Recent Templates box under Display on the Advanced tab of the Visio Options dialog box. To open the Visio Options dialog box, click the File tab, click Options, and then click Advanced. The maximum number of recently used templates that can be displayed is 12.

示例Example

下面的 Visual Basic for Applications (VBA) 宏显示如何使用RecentTemplatesListSize属性可以打印在立即窗口中最近使用的模板列表的当前大小。它还演示了如何从 Visio应用程序对象中获取一个ApplicationSettings对象。The following Visual Basic for Applications (VBA) macro shows how to use the RecentTemplatesListSize property to print the current size of the recently used template list in the Immediate window. It also shows how to get an ApplicationSettings object from the Visio Application object.

Public Sub RecentTemplatesListSize_Example() 

    Dim vsoApplicationSettings As Visio.ApplicationSettings 
    Dim lngListSize As Long 

    Set vsoApplicationSettings = Visio.Application.Settings 
    lngListSize = vsoApplicationSettings.RecentTemplatesListSize 

    Debug.Print lngListSize 

End Sub
© 2018 Microsoft