Gets the index of the Constraint specified by name.
member IndexOf :
constraintName:string -> int
The name of the Constraint.
Use the IndexOf method to return an index to be used with either the Contains or Remove method.
The following example uses the IndexOf method to return the index of a Constraint. The index is passed to the Contains method to determine whether the collection contains the constraint, before removing it.