(Inherits from MfCollectionBase)
Provides the class for a strongly typed collection.
Name |
Description |
|
Constructor for MfCollection Class |
Name |
Description |
|
Gets the number of elements contained in the MfCollectionBase instance. This property cannot be overridden. Inherited from MfCollectionBase |
||
Gets an MfList containing the list of elements in the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Gets or sets the element at the specified index. Inherited from MfCollectionBase |
||
Gets a value indicating whether the MfCollectionBase has a fixed size. Inherited from MfCollectionBase |
||
Gets a value indicating whether the MfCollectionBase is read-only. Inherited from MfCollectionBase |
Name |
Description |
|
Returns a new enumerator to enumerate this object's key-value pairs. This method is usually not called directly, but by the for-loop or by GetEnumerator(). Overrides MfEnumerableBase._NewEnum() Inherited from MfCollectionBase |
||
Adds an object to the end of the MfCollectionBase. Inherited from MfCollectionBase |
||
Adds MfAttribute extended items to extended classes. Inherited from MfObject. |
||
Removes all objects from the MfCollectionBase instance. This method in not to be overridden. Inherited from MfCollectionBase |
||
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. Inherited from MfObject. |
||
Determines whether the MfCollectionBase contains a specific element. Inherited from MfCollectionBase |
||
Compares obj to current instance to see if they are the same. Inherited from MfObject. |
||
Gets an MfAttribute of the class. Inherited from MfObject. |
||
Gets a MfGenericList of MfAttribute that Contains the attributes for the current class instance. Inherited from MfObject. |
||
Gets an enumerator. Inherited from MfEnumerableBase |
||
Gets the zero-based index value of the position of MfAttribute within the instance of the class. Inherited from MfObject. |
||
Gets the Type for the for the Class .Inherited from MfObject. |
||
Gets if the current instance of class derived from MfSystemException has MfAttribute. Inherited from MfObject. |
||
Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject. |
||
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire MfCollectionBase. Inherited from MfCollectionBase |
||
Inserts an element into the MfCollectionBase at the specified index. Inherited from MfCollectionBase |
||
Get if the current class is an instance. Inherited from MfObject. |
||
Creates a shallow copy of the current MfObject instance. Inherited from MfObject. |
||
Performs additional custom processes when clearing the contents of the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes after clearing the contents of the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes before inserting a new element into the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes after inserting a new element into the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes when removing an element from the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes when removing an element from the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes before setting a value in the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes after setting a value in the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Performs additional custom processes when validating a value. Inherited from MfCollectionBase |
||
Removes the first occurrence of a specific object from the MfCollectionBase. Inherited from MfCollectionBase |
||
Removes the element at the specified index of the MfCollectionBase instance. Inherited from MfCollectionBase |
||
Gets a string representation of the MfObject. Inherited from MfObject. |
||
Verifies the the current object is set to an instance. Inherited from MfObject. |
||
VerifyIsNotInstance([MethodName, LineFile, LineNumber, Source]) |
Verifies the the current object is NOT set to an instance. Used in Static methods. Inherited from MfObject. |
mfCol := new MfCollection()
i := 0
iEnd := 10
While, (i < iEnd)
{
if (Mod(i, 2)) ; only odd numbers
{
mss := new MfString()
mss.Value := MfString.Format("String Value: '{0}'", i)
mfCol.Add(mss)
}
else
{
msi := new MfInteger(i)
mfCol.Add(msi)
}
i++
}
mfsOutput := new MfString()
mfiOutput := new MfInteger()
For i, var in mfCol
{
if (MfObject.IsObjInstance(var, MfString))
{
mfsOutput.AppendLine(var)
}
else if (MfObject.IsObjInstance(var, MfInteger))
{
mfiOutput.Add(var)
}
}
MsgBox, 64, Text, % mfsOutput.Value
MsgBox, 64, Total, % mfiOutput.ToString()