SaveFileDialogArray.Item[Int16] 属性
定义
通过索引获取 SaveFileDialogArray 的特定元素。Gets a specific element of a SaveFileDialogArray by index. 只读。Read-only.
public:
property System::Windows::Forms::SaveFileDialog ^ default[short] { System::Windows::Forms::SaveFileDialog ^ get(short Index); };
public System.Windows.Forms.SaveFileDialog this[short Index] { get; }
member this.Item(int16) : System.Windows.Forms.SaveFileDialog
Default Public ReadOnly Property Item(Index As Short) As SaveFileDialog
参数
- Index
- Int16
一个指定控件数组元素位置的 Short。A Short that specifies the position of an element of the control array.
属性值
位于控件数组中指定 Index 处的 SaveFileDialog。A SaveFileDialog at the specified Index in the control array.
注解
Item属性是控件数组的默认属性。The Item property is the default property for a control array. 因此,以下代码行是等效的。Therefore, the following lines of code are equivalent.
MsgBox(CStr(SaveFileDialogArray.Item(1).Text))
MsgBox(CStr(SaveFileDialogArray(1).Text))
备注
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.