点击或拖拽改变大小

FoxArray Class

X#
Internal type that implements the FoxPro Compatible ARRAY type.
This type has methods and properties that normally are never directly called from user code.
Inheritance Hierarchy
Object
  Array OfUsual
    Array
      FoxArray

命名空间:  XSharp
程序集:  XSharp.VFP (在 XSharp.VFP.dll 中) 版本:2.24 GA
Syntax
 SEALED CLASS FoxArray INHERIT ARRAY, 
	 IMPLEMENTS IIndexer
Request Example 查看代码

FoxArray 类型公开以下成员。

Constructors
  NameDescription
公共方法FoxArray
Create an empty array
公共方法FoxArray(Object)
Create an array and fill it with elements from an existing .Net array of objects. Note that the objects must be of the right type.
公共方法FoxArray(DWord)
Create an array with a certain capacity.
公共方法FoxArray(DWord, DWord)
初始化 FoxArray 类的一个新实例
Top
Properties
  NameDescription
公共属性Columns
公共属性DefaultValue
Returns the default value for array elements when arrays are resized or initialized. This is NIL.
(重写 DefaultValue.)
公共属性ItemLong
使用零为基础的数组索引来获取/设置数组元素。
(重写 ItemLong.)
公共属性ItemLong
使用零为基础的数组索引来获取/设置数组元素。
(重写 ItemLong.)
公共属性ItemLong, Long
使用零为基础的数组索引来获取/设置数组元素。
(重写 ItemLong, Long.)
公共属性MultiDimensional
公共属性Rows
Top
Methods
  NameDescription
公共方法DeleteColumn
Delete a column from a multi dimensional array.
公共方法DeleteRow
Delete a row from a multi dimensional array.
公共方法InsertColumn
Insert a column into a multi dimensional array.
公共方法InsertRow
Insert a row into a multi dimensional array.
公共方法ReDim
Top
备注
FoxPro arrays can be one dimensional or two dimensional. Two dimensional arrays are implemented as a projection on top of a one dimensional array.
So a two dimensional array of 4 x 3 elements will be implemented as an array of 12 elements. The elements 1-3 represent row 1, 4-6 row 2 etc.
备注
这个类型的索引器是基于零的,但是在你的 PRG 代码中,你可以使用一为基础的数组索引。 当编译器检测到对实现了这个接口的类的索引操作时,编译器会自动 调整索引(减去一),除非启用了/az编译器选项。
See Also