Click or drag to resize

Picklist Methods

The Picklist type exposes the following members.

Methods
  NameDescription
Public methodAdd
Add a PicklistItem object to the collection.
Public methodStatic memberCacheName
Generates the fully-qualified cache name for the specified picklist item.
Public methodClear
Clears the collection.
Public methodClone
Returns a copy of the Picklist.
Public methodStatic memberCreateInstance
Creates or clones the Picklist represented by the provided PicklistItemInfo object.
Public methodDisplayTextList
Gets the delimited list of DisplayText for the items in the picklist.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAltText
Returns the alternative text for a specified keyValue.
Public methodGetByName
Gets the PicklistItem information for the item with the specified name. Note that StandardPicklist items always have a name distinct from its text that serves as a constant. This is not necessarily true for the other picklist types.
Public methodGetDisplayText(Object, String)
Returns the display text for a specified keyValue.
Public methodGetDisplayText(Object, String, GetListOptions)
Returns the display text for a specified keyValue per the specified GetListOptions. Note that you can use GetDisplayText(String, Object, String, GetListOptions) to perform a safe lookup when it is possible that the picklist may not exist.
Public methodGetDisplayTextClip
Returns a 'clip' string of the display text separated by the delimiter. Note that duplicates will be not be included.
Public methodGetFirstValueMatch(String, String, Object)
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs an exact match search.
Public methodGetFirstValueMatch(String, String, GetListOptions, Object)
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search, or exact match search, as specified in opts. Note that if IncludeDisabled is specified, a disabled item will only be matched if there are no matching enabled items.
Public methodGetFirstValueMatch(String, String, Boolean, Boolean, Object)
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search, or exact match search, as specified. Note that if allowDisabled is specified, a disabled item will only be matched if there are no matching enabled items.
Public methodGetFirstValueMatchStartsWith
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetItem
Return a PicklistItem matching the specified key/discrim.
Public methodGetList
Returns the IList collection of PicklistItem items per the specified options. Note that any discrimValue comparison is case-insensitive.
Public methodGetTagString(String, String)
Returns a 'tag' string of the picklist contents.
Public methodGetTagString(String, String, PicklistTagStringFlags)
Returns a 'tag' string of the picklist contents per the specified PicklistTagStringFlags.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the value of the object matching the supplied display text.
Public methodHasItems
Determines if the picklist has any items, excluding any null entry. Note that disabled and discrimmed-out items are included.
Public methodItemValueStatus(String, String)
Determine the PicklistItemStatus of a value in the picklist.
Public methodItemValueStatus(String, String, String)
Determine the PicklistItemStatus of a value in the picklist also returning the item's displayText.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRefresh
Populates the collection.
Public methodSort
Sort the picklist per the picklist's PicklistAttrs.
Public methodSort(PicklistAttrs)
Sort the picklist per the specified PicklistAttrs.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
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.)
Top
See Also