Removes the property with the given index.

Syntax:

Remove( Index As Variant, NamespaceURI As String )
Parameters: Index The name of the property or the index number of the collection element. The index can be a numerical expression (a number from 1 to the value of the "Count" property) or a string.
NamespaceURI Namespace URI of the property. If the index is a numerical expression the namespace URI must be an empty string.
Example:
' Load TUs with Properties
Dim ProjFile As ProjectFile
Set ProjFile = Application.ActiveProjectFile
If (ProjFile.IsLoaded = False) Then
    Call ProjFile.Load("", "fr")
End If
    
Dim TUProps As TransUnitProperties
Set TUProps = ProjFile.TransUnits.Item(1).Properties
   
' Add Property
Dim TUProp As TransUnitProperty
Dim OtherTUProp As TransUnitProperty
Set TUProp = TUProps.Add(transunit_translate, "yes", "", "")
Set OtherTUProp = TUProps.Add(transunit_x_extended, "MyValue", "x_myproperty", "http://www.mydomain.com")
    
' Remove Property
Call TUProps.Remove("transunit_translate", "")
Call TUProps.Remove("x_myproperty", "http://www.mydomain.com")

See also:

Class TransUnitProperties


Last Updated: 04/27/05