[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add

Add Method

Add(string, object)

Adds a data source to this DataSourceDictionary.

Declaration
public void Add(string key, object value)
Parameters
Type Name Description
string key

The key (name) of the data source to add.

object value

The data source to add.

Implements

Add(string, object, CultureInfo)

Adds a data source to this DataSourceDictionary.

Declaration
public void Add(string key, object value, CultureInfo culture)
Parameters
Type Name Description
string key

The key (name) of the data source to add.

object value

The data source to add.

CultureInfo culture

The culture to use when parsing or formatting data from the added data source.

Exceptions
Type Condition
ArgumentNullException

key is null.

ArgumentException

An element with the same key already exists in the DataSourceDictionary.

Add(KeyValuePair<string, object>)

Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
Type Name Description
KeyValuePair<string, object> item
Implements