Add(Calculation,String) Method
Adds an element to the collection based on the specified collection with the specified name.
Syntax
'Declaration Public Overloads Function Add( _ ByVal calc As Calculation, _ ByVal text As String _ ) As Integer
'Usage Dim instance As ElementCollection Dim calc As Calculation Dim text As String Dim value As Integer value = instance.Add(calc, text)
public int Add( Calculation calc, string text )
Parameters
- calc
- Calculation to perform on the elements.
- text
- Name of the new element.
Return Value
Numeric index of the added element.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also