开发者

how to bind two dimensional array with excel range in vsto

I want to开发者_StackOverflow社区 get Excel cell values as a 2D array without using a for loop in a VSTO add-in.


Excel.Range rng = myWorksheet.get_Range("A1:D4", Type.Missing);

//Get a 2D Array of values from the range in one shot:
object[,] myArray = (object[,])rng.get_Value(Type.Missing);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜