[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.INames.AddExternalVariable

AddExternalVariable Method

AddExternalVariable(string, string)

Creates a external variable.

Declaration
ExternalVariable AddExternalVariable(string name, string formula)
Function AddExternalVariable(name As String, formula As String) As ExternalVariable
Parameters
Type Name Description
string name

A string value indicates the external variable name.

string formula

A string value indicates the associated formula.

Returns
Type Description
ExternalVariable

A ExternalVariable object indicates the new external variable.

AddExternalVariable<T>(string, string)

Creates a external variable.

Declaration
T AddExternalVariable<T>(string name, string formula) where T : ExternalVariable, new()
Function AddExternalVariable(Of T As {ExternalVariable, New})(name As String, formula As String) As T
Parameters
Type Name Description
string name

A string value indicates the external variable name.

string formula

A string value indicates the associated formula.

Returns
Type Description
T

A <T> object indicates the new external variable.

Type Parameters
Name Description
T

The external variable type that implement ExternalVariable.

AddExternalVariable(string, ExternalVariable, string)

Creates a external variable.

Declaration
bool AddExternalVariable(string name, ExternalVariable externalVariable, string formula = null)
Function AddExternalVariable(name As String, externalVariable As ExternalVariable, Optional formula As String = Nothing) As Boolean
Parameters
Type Name Description
string name

A string value indicates the external variable name.

ExternalVariable externalVariable

A ExternalVariable object indicates the external variable name to add.

string formula

A string value indicates the associated formula.

Returns
Type Description
bool

true if the externalVariable object is added successful; otherwise, false.