ExcelWorksheetDataBytes Method (String) |
Returns the content of the cell at columnName 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(
string columnName
)
Public Function Bytes (
columnName As String
) As Byte()
public:
array<unsigned char>^ Bytes(
String^ columnName
)
member Bytes :
columnName : string -> byte[]
Parameters
- columnName
- Type: SystemString
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