Fields Methods |
The Fields type exposes the following members.
Name | Description | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Add(IField) |
Adds an IField to the collection.
| |||||||||||||||||||
Add(String, Object) |
Adds an object to the collection. Override. This method simply calls the Add method with CollectionAddFlags.replace as the flags.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Add(String, Object, CollectionAddFlags) |
Adds an item to the collection
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
AddAt |
Adds an item to the collection at the specified index. To append an item use -1 or
the collection item count as the index.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
AddLabel |
Add a label to its associated field.
The collection is scanned for a field whose ControlName matches the label's
AssociatedControlID. If found, the field's label (LabelControl) is set to reference the label.
| |||||||||||||||||||
Clear |
Clears the collection
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Contains(Object) |
Determines whether an element is in the collection.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Contains(String) |
Determines if a field with the specified Key exists in the collection.
| |||||||||||||||||||
ContainsKey |
Checks for the existence of an item in the hashtable
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
CopyTo |
Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Equals | (Inherited from Object.) | |||||||||||||||||||
Field(String) |
Retrieves the specified IField object from the collection. Note that, unlike the Fields[Key]
indexer, if the field is not found then no entry is logged to the devlog. For finer control over
behaviour when the field is not found, use the Find(String, FieldFindType, FindBehaviour) method specifying the desired
FindBehaviour.
| |||||||||||||||||||
Field(String, FindBehaviour) |
Retrieves the specified IField object from the collection. Note that, unlike the Fields[Key]
indexer, if the field is not found no entry is logged to the devlog. For finer control over
behaviour when the field is not found, use the Find(String, FieldFindType, FindBehaviour) method specifying the desired
FindBehaviour.
| |||||||||||||||||||
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |||||||||||||||||||
Find(String, FieldFindType) |
Searches for a field in the collection based on FieldFindType using OkIfNotFound.
See Find(String, FieldFindType, FindBehaviour) for additional details.
| |||||||||||||||||||
Find(String, FieldFindType, FindBehaviour) |
Searches for an IField in the collection based on FieldFindType.
The searchID depends on the findType:
| |||||||||||||||||||
GetBoolValue |
Get the value for the specified field, converted to a bool.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetDateTimeValue |
Get the value for the specified field, converted to a DateTime.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetDecimalValue |
Get the value for the specified field, converted to a decimal.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetDisplayText |
The DisplayText (see cref="IField.DisplayTextGet"/>) for the specified field.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetDoubleValue |
Get the value for the specified field, converted to a double.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetEnumerator |
Returns an enumerator that can iterate through the ArrayList.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |||||||||||||||||||
GetIntValue |
Get the value for the specified field, converted to an int.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetItem(Int32) |
Returns an item that matches the specified string index
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
GetItem(String) |
Returns an item that matches the specified string index
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
GetItemName |
Returns the name of the item, a IField.Key (Overrides EAPCollectionBaseGetItemName(Object).) | |||||||||||||||||||
GetStringValue |
Get the value for the specified field, converted to a string (without internationalization).
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |||||||||||||||||||
GetValue(String) |
Get the value for the specified field.
If the field is not found then an error is raised.
| |||||||||||||||||||
GetValue(String, Object, FindBehaviour) |
Get the value for the specified field, or the defaultValue if not found.
The behaviour when the field is not found is dictated by the FindBehaviour parameter.
| |||||||||||||||||||
IndexOf |
Returns the zero-based index of the first occurrence of an object in the internal ArrayList or in a portion of it.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
IndexOfKey |
Returns the index of the item in the collection (by key)
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Insert |
Inserts an element into the internal ArrayList at the specified index
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
IsMarkedForDeletion |
Determines if this element is marked for deletion. Note that this base implementation
must be overridden in order to support RemoveMarkedItems() for a partular collection.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
IsTypeOK |
Verifies the item is an acceptable type. Generally this is a test like "return (item is [class]);".
(Overrides EAPCollectionBaseIsTypeOK(Object).) | |||||||||||||||||||
KeyList |
Extracts the keys for the fields in the collection as a semi-colon separated list.
| |||||||||||||||||||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |||||||||||||||||||
Notify |
Send a notification to all fields in the collection.
| |||||||||||||||||||
RecalcHash |
Recalculates the internal hash
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Remove(Object) |
Removes the first occurrence of a specific object from the collection
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Remove(String) |
Remove the specified item from the collection.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
RemoveAt |
Removes the element at the specified index
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
RemoveMarkedItems |
Removes the properties marked for deletion.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
RemoveRange |
Removes the element at the specified index
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
SetItem(Int32, Object) |
Sets an item's value at the specified index.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
SetItem(String, Object) |
Sets an item's value at the string index indicated by the parameters.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
SetValue(String, Object) |
Set the value for the specified field. If the field is not found,
an error is raised.
| |||||||||||||||||||
SetValue(String, Object, SetValFlags, FindBehaviour) |
Set the value for the specified field per the provided SetValFlags.
Behaviour in the case where the specified field is not found in the collection is dictated by FindBehaviour.
| |||||||||||||||||||
Sort(Boolean) |
Sort the list by its key value.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Sort(IComparer) |
Sort the collection using the provided comparer.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Sort(String) |
Sorts the Fields collection in the order specified by the provided semi-colon-separated list of
field keys. Fields not in the provided sort list retain their relative positions, but following all
explicitly ordered fields. The list is handled case-insensitively, but may provide slightly better
performance if provided in all lower-case.
| |||||||||||||||||||
Subset |
Obtain a Fields collection with a subset of this collection's IField objects. The criteria for
determining which fields to include in the subset is specified using FieldSubsetType:
| |||||||||||||||||||
ToString | (Inherited from Object.) | |||||||||||||||||||
Truncate |
Truncate the array starting at the specified index.
(Inherited from EAPCollectionBase.) | |||||||||||||||||||
Unload |
Called when the collection is cleared allowing a derived class to clean up.
(Inherited from EAPCollectionBase.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |