Method SetCustom
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
SetCustom(string, object)
Sets a custom property: a string (text), an int (number), a double or a decimal (number with decimals), a bool (yes or no) or a DateTime (date, written in UTC); added after the others when the workbook has no property of the name.
public void SetCustom(string name, object value)
Parameters
Exceptions
- ArgumentNullException
nameorvalueis null.- ArgumentException
The name is empty or too long, or the value is not of a kind a custom property holds.