ExcelWorksheetDataBytes Method (Int32) |
Returns the content of the nth cell as an array of bytes.
Namespace: Test.FrameworkAssembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public byte[] Bytes(
int ordinal
)
Public Function Bytes (
ordinal As Integer
) As Byte()
public:
array<unsigned char>^ Bytes(
int ordinal
)
member Bytes :
ordinal : int -> byte[]
Parameters
- ordinal
- Type: SystemInt32
Return Value
Type:
ByteRemarks 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