[]
        
(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)
Public Sub Add(key As String, value As Object)
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)
Public Sub Add(key As String, value As Object, culture As CultureInfo)
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)
Public Sub Add(item As KeyValuePair(Of String, Object))
Parameters
Type Name Description
KeyValuePair<string, object> item
Implements