MfCharList

Namespace ›› System ››
Parent Previous Next

MfCharList Class

(Inherits from MfListBase)

MfCharList is a sealed class that exposes methods and properties used for list of Char code Numeric values.

MfCharList is structured to work with chars only. For a list that is better suited for containing objects see MfList and MfGenericList.

Links

Properties, Methods, Remarks

Constructors


Name

Description

Constructor([Size, Encoding])

Initializes a new instance of the MfCharList class.

Properties


Name

Description

AutoIncrease

Gets or set a value indicating the list should Auto-Increase in size when Limit is reached

Char[index]

Gets or sets the element at the specified index as char

Count

Gets a value indicating if the MfListBase number of Elements. Inherited from MfListBase

Encoding

Gets the Encoding of the current instance

IsFixedSize

Gets a value indicating if the MfListBase has a fixed size. Inherited from MfListBase

IsReadOnly

Gets a value indicating if the MfListBase is read-only. Inherited from MfListBase

Item[index]

Gets or sets the element at the specified index. Overrides MfListBase.Item.

Methods


Name

Description

_NewEnum()

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(). Inherited from MfListBase

Add(obj)

Adds an integer char code element to the end of the current instance. Overrides MfListBase.Add()

Add(str [, startIndex, length])

Adds string or char code elements to the end of the current instance.

Clear()

Removes all elements from the instance and sets Count to Zero. Inherited from MfListBase

Clone()

Clones all the elements of the current instance an return  a new instance. Overrides MfListBase.Clone().

CompareTo(objA, objB [, IgnoreCase])

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.

CompareTo(obj [, IgnoreCase])

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. Overrides Overrides MfObject.CompareTo()

Contains(obj [, ignoreCase])

Determines whether the MfCharList contains a specific element.
Overrides MfListBase.Contains()

Equals(obj)

Compares the current instance with another object of the same type and returns boolean var that indicates whether the current instance equals obj instance. Overrides MfObject.Equals()

FromString(s [, includeWhiteSpace])

Create a new instance of MfCharList from a string.

GetCharEnumerator()

Gets an enumerator that enumerates through the MfCharList instance as chars

GetEnumerator()

Gets an enumerator. Inherited from MfEnumerableBase

IndexOf(obj [, StartIndex, Count, IgnoreCase])

Searches for the specified var and returns the index of the first occurrence within the entire instance.
Overrides MfListBase.IndexOf()

Insert(index, value)

Inserts an integer char value element into the MfCharList at the specified index.
Overrides MfListBase.Insert()

GetType()

Gets the Type for the for the Class .Inherited from MfObject.

Is(type)

Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject.

IsInstance()

Get if the current class is an instance. Inherited from MfObject.

LastIndexOf(obj)

Searches for the specified object or var and returns the index of the last occurrence within the entire instance. Inherited from MfListBase

MemberwiseClone()

Creates a shallow copy of the current MfObject instance. Inherited from MfObject.

Remove(obj [,StartIndex, Count, IgnoreCase, RemoveAll])

Removes the one or more occurrences of a specific object from the instance.
Overrides MfListBase.Remove()

RemoveAt(index)

Removes the item at the specified index. Inherited from MfListBase

SubList([startIndex, endIndex, leftToRight])

Method extracts the elements from list, between two specified indices, and returns the a new list.

ToArray()

Returns a One-Based AutoHotkey array representing all the elements in the current instance. Inherited from MfListBase

ToString(([returnAsObj, startIndex, count])

Gets a string representation of the object elements.
Overrides MfListBase.ToString()

Since

Version 0.4

Remarks

Internally all string characters are stored as integer char code values in the current instance.