ArrayHelperDimArrayT(Object, Object, Object, Object) 方法
定义二维数组 和VBA里一样可定义非零下标二维数组
对标Dim arr(1 to 10,1 to 2)==> DimArray(1,10,1,2)
命名空间: Excel880VSTO程序集: Excel880VSTO (在 Excel880VSTO.dll 中) 版本:1.5.8.0 (1.5.8.0)
public static T[,] DimArray<T>(
Object 下标1,
Object 上标1,
Object 下标2,
Object 上标2
)
Public Shared Function DimArray(Of T) (
下标1 As Object,
上标1 As Object,
下标2 As Object,
上标2 As Object
) As T(,)
Dim 下标1 As Object
Dim 上标1 As Object
Dim 下标2 As Object
Dim 上标2 As Object
Dim returnValue As T(,)
returnValue = ArrayHelper.DimArray(下标1,
上标1, 下标2, 上标2)
- 下标1 Object
-
- 上标1 Object
-
- 下标2 Object
-
- 上标2 Object
-
- T
T