PictureBoxArray.ShouldSerializeIndex(PictureBox) 方法

定义

返回一个值,该值指示 PictureBox 是否为此 PictureBoxArray 的成员。Returns a value that indicates whether a PictureBox is a member of this PictureBoxArray.

public:
 bool ShouldSerializeIndex(System::Windows::Forms::PictureBox ^ o);
public bool ShouldSerializeIndex (System.Windows.Forms.PictureBox o);
member this.ShouldSerializeIndex : System.Windows.Forms.PictureBox -> bool
Public Function ShouldSerializeIndex (o As PictureBox) As Boolean

参数

o
PictureBox

控件数组中的 PictureBoxA PictureBox in the control array.

返回

Boolean

如果 o 是此控件数组的一个成员,则为 true;否则为 falsetrue if o is a member of this control array; otherwise, false.

注解

如果指定的 PictureBox 是另一个 PictureBoxArray 的成员,ShouldSerializeIndex 则返回 falseIf the specified PictureBox is a member of a different PictureBoxArray, ShouldSerializeIndex returns false.

备注

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.

适用于