PicklistDynamicAddItem Method |
Add an item to the
Picklist associated with this handler. This method is the preferred way for
custom picklist handlers to add picklist items to the associated picklist. It constructs the
PicklistItem and calls
Add(PicklistItem) to add it to the picklist. But, in between it performs
certain common and useful activities such as determining the Key datatype and extracting grouping
information.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax protected PicklistItem AddItem(
string itemId,
string name,
string caption,
string altKeyText,
int altKeyInt,
string discrim,
string naturalGroup,
string tip,
PicklistItemAttrs attrs
)
Protected Function AddItem (
itemId As String,
name As String,
caption As String,
altKeyText As String,
altKeyInt As Integer,
discrim As String,
naturalGroup As String,
tip As String,
attrs As PicklistItemAttrs
) As PicklistItem
Parameters
- itemId
- Type: SystemString
The picklist item ID. - name
- Type: SystemString
The name of the picklist item. - caption
- Type: SystemString
The localized caption for the picklist item. - altKeyText
- Type: SystemString
The alternate text key, if any, for the item. - altKeyInt
- Type: SystemInt32
The alternate int key, if any, for the item. - discrim
- Type: SystemString
The discrim, if any, for the item. - naturalGroup
- Type: SystemString
The natural group, if any, for the item. - tip
- Type: SystemString
The tooltip, if any, for the item. - attrs
- Type: NetQuarryPicklistItemAttrs
The item attributes.
Return Value
Type:
PicklistItemThe newly created picklist item.
See Also