Table of Contents

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

name string

The name: 1 to 255 characters.

value object

The value.

Exceptions

ArgumentNullException

name or value is null.

ArgumentException

The name is empty or too long, or the value is not of a kind a custom property holds.