Click or drag to resize
ExcelWorksheetDataBytes Method (Int32)
Returns the content of the nth cell as an array of bytes.

Namespace: Test.Framework
Assembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public byte[] Bytes(
	int ordinal
)

Parameters

ordinal
Type: SystemInt32

Return Value

Type: Byte
Remarks

The bytes must be formatted as a sequence of hex digits with any of these characters between each digit:

  • space
  • tab (although this might be tricky to get into a spreadsheet cell!)
  • comma
  • semi-colon
  • forward-slash
  • dot
Examples
A cell whose content is null would return a null array. A cell whose content is two quotes ("") returns an empty array. A cell whose content was '01 aa.BB/0c' would return a byte[] of length 4 whose contents were 0x01, 0xAA, 0xBB, 0x0C.
See Also