找不到 ListTemplates 的 get_Item() 方法

Can not find get_Item() method for ListTemplates

我正在开发一个 C#/VSTO 应用程序,用于在 MS Word 中自动执行某些任务。我正在尝试使用 ListTemplate 更改编号列表的起始编号。我见过几个这样访问 ListTemplate 的例子:

ListTemplate template = 
    app.ListGalleries[WdListGalleryType.wdNumberGallery].ListTemplates.get_Item(ref n);

但是,Visual Studio 无法将 get_Item() 识别为 ListTemplates 的方法。 VS 弹出窗口中列出了 ListTemplates 的其他方法,所以我不确定是什么问题?我该如何去引用 ListTemplate?谢谢!

当我签入 VSTO 时,ListTemplates 没有 get_Item。相反,人们使用索引。例如

ListTemplate template =app.ListGalleries[Word.WdListGalleryType.wdNumberGallery].ListTemplates[Word.WdListGalleryType.wdNumberGallery];