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

网页对象 (访问)Pages Object (Access)

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

Pages集合包含选项卡控件中的所有对象。The Pages collection contains all Page objects in a tab control.

注解Remarks

Pages集合是一种特殊的隶属于选项卡控件的Controls集合。它包含的控件的对象。Pages集合,您可以添加和移除页面对象使用Pages集合中的方法与典型的Controls集合。The Pages collection is a special kind of Controls collection belonging to the tab control. It contains Page objects, which are controls. The Pages collection differs from a typical Controls collection in that you can add and remove Page objects by using methods of the Pages collection.

若要从 Visual Basic 到Pages集合中添加新的Page对象,使用Pages集合的Add方法。要删除现有的页面对象,请使用Remove方法Pages集合中。以Page对象在Pages集合的计数,请使用Pages集合的Count属性。To add a new Page object to the Pages collection from Visual Basic, use the Add method of the Pages collection. To remove an existing Page object, use the Remove method of the Pages collection. To count the number of Page objects in the Pages collection, use the Count property of the Pages collection.

您可以使用CreateControl方法将Page对象添加到选项卡控件的Pages集合。若要执行此操作,必须指定选项卡控件的CreateControl函数的_父_参数的名称。对于Page对象的ControlType属性常数为acPageYou can also use the CreateControl method to add a Page object to the Pages collection of a tab control. To do this, you must specify the name of the tab control for the Parent argument of the CreateControl function. The ControlType property constant for a Page object is acPage.

您可以枚举Pages集合使用为每个...下一步语句。You can enumerate through the Pages collection by using the For Each...Next statement.

单个Page对象在Pages集合中的从零开始的索引。Individual Page objects in the Pages collection are indexed beginning with zero.

方法Methods

名称Name
AddAdd
RemoveRemove

属性Properties

名称Name
CountCount
ItemItem

另请参阅See also

其他资源Other resources

Access 对象模型引用Access Object Model Reference

© 2018 Microsoft