Overload List

  Name Description
Public method Delete(ICopyable)
Deletes an object from a model.

After you call this method, the modeling object obj is no longer in the model. If the modeling object is referenced multiple times in a model (for example, a variable used by multiple constraints), then that object is removed from all places. In particular, when you delete a variable from a model, the variable is removed from all the other modeling objects in the model. Modeling objects that are variables are not of type IAddable. In fact, the type of the removed object is ICopyable, a common base interface of both IAddable and INumVar.

Public method Delete(array<ICopyable>[]()[][])

Deletes the modeling objects in an array obj from the invoking IModel. After you call this method, the deleted objects are no longer in the model. If a modeling object is referenced multiple times in a model (for example, a variable used by multiple constraints), the object is removed from all places. When you delete variables from a model, they are removed from all other modeling objects in the model.

Public method Delete(array<ICopyable>[]()[][], Int32, Int32)
Deletes the modeling objects in obj[start] through obj[start+num-1] from a model. Modeling objects obj[start] through obj[start+num-1] are deleted from the invoking instance of IModel. After you call this method, the deleted objects will no longer be in the model. If a modeling object is referenced multiple times in a model (for example, a variable used by multiple constraints), the object is removed from all places. Thus, when you delete variables from a model, they are removed from all other modeling objects in the model.

See Also