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

Image.Controls 属性 (访问)Image.Controls Property (Access)

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

返回窗体、 子窗体、 报表或节的控件集合。只读的控件Returns the Controls collection of a form, subform, report or section. Read-only Controls.

语法Syntax

表达式控件expression. Controls

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

注解Remarks

使用Controls属性可以引用窗体、 子窗体、 报表或节中的控件或附加到其他控件。例如,下面的第一个代码语法将返回 Form1 上控件的数目。第二个引用控件中某个属性的名称。Use the Controls property to refer to one of the controls on a form, subform, report, or section within or attached to another control. For example, the first code syntax below returns the number of controls located on Form1. The second references the name of a property within a control.

Forms("Form1").Controls.Count 

Forms("Form1").Controls("Textbox1").Properties(5).Name

另请参阅See also

概念Concepts

图像对象Image Object

© 2018 Microsoft