COM Interface: ISchVariants

In eCADSTAR Schematic Editor, this class returns the variant at the position in the collection that is specified by an index value.

Members

Functions

Function Description
ISchVariant Item(long index) Returns the variant at the position in the collection that is specified by the index value. This must be a valid index position, such that 1 <= i <= Count(). The response time increases in proportion to the size of the collection.
ISchVariant Find(BSTR key) Finds a variant whose Name() value is equivalent to the key value. The response time increases in proportion to the size of the collection.
void Add(BSTR name) Adds a new variant with the specified name.
void Remove(BSTR name) Removes the variant with the specified name. Removing the last variant is equivalent to Clear().
void Clear() Removes all variants. This is equivalent to the Delete All Variation Information command.
void Insert(long position, BSTR name) Inserts a new variant with the specified name at the specified position.

Properties

Property Description
long Count {get} Returns the number of variants in the collection. The response time increases in proportion to the size of the collection.
IEnumVARIANT _NewEnum {get} Enables use of the built-in syntax of a COM client to iterate through an object’s collection of items.
ISchVariant Current {get} The current variant.
ISchVariant Default {get} The default variant.
VARIANT_BOOL AdvancedMode {get} {set} Returns true if in the advanced mode.
  • If true is set, then advanced mode is selected.
  • If false is set, then normal mode is selected.