Click or drag to resize
PicklistField Class
Represents a field declaration that contains a picklist and whose field values can only be chosen from that picklist.
Inheritance Hierarchy

Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public class PicklistField : Field, 
	ICloneable

The PicklistField type exposes the following members.

Constructors
  NameDescription
Public methodPicklistField
Initializes a new instance with default values.
Public methodPicklistField(PicklistField)
Initializes a new instance with the values of another instance, creating a deep copy.
Public methodPicklistField(String, FieldValueType)
Initializes a new instance of the PicklistField class with a specified name and type.
Remarks
The only valid values for the type are SinglePicklist and MultiplePicklist.
Public methodPicklistField(String, FieldValueType, ICollectionPicklistItem)
Initializes a new instance of the PicklistField class with a specified name and type.
Remarks
The only valid values for the type are SinglePicklist and MultiplePicklist.
Public methodPicklistField(String, FieldValueType, ICollectionString)
Initializes a new instance of the PicklistField class with a specified name and type.
Remarks
The only valid values for the type are SinglePicklist and MultiplePicklist.
Top
Properties
  NameDescription
Public propertyFieldType
Gets the type of the field, i.e. whether it is a system or user-defined field.
(Inherited from Field.)
Public propertyIsSystemField
Gets a flag which indicates that this field is a system field. System fields cannot be changed or deleted by the user. Setting this flag from user-code has no effect.
(Inherited from Field.)
Public propertyName
Gets or sets the field name.

See IsValidName(String) for a detailed description of accepted identifiers.

(Inherited from Field.)
Public propertyPicklist
Gets the picklist items collection.
Public propertyPicklistItemNames
The names of all picklist items for this Field. This collection will be empty if this field is not a SinglePicklist or MultiplePicklist.
(Overrides FieldPicklistItemNames.)
Public propertyResourceId
Gets or sets the resource ID for this object.
(Inherited from PersistentObject.)
Public propertyValueType
Gets or sets the field value type
(Inherited from Field.)
Top
Methods
  NameDescription
Protected methodCheckName
Checks the given name and throws an exception if the name is not valid.
(Inherited from Field.)
Public methodClone (Overrides FieldClone.)
Public methodCreateValue
Creates a FieldValue instance, with the same name and type as this field declaration.
(Inherited from Field.)
Public methodDuplicate
Creates a new instance that is a deep copy of this instance.
(Overrides FieldDuplicate.)
Public methodEquals
Equals(object)
(Overrides FieldEquals(Object).)
Public methodEqualsDeclaration
Determines whether this instance of Field and a specified object, which must also be a Field object, represent the same field declaration, not considering the picklist.
(Inherited from Field.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
GetHashCode(object)
(Overrides FieldGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPicklistFromString
Deserializes the picklist values from the provided string and sets the picklist values accordingly. Existing values will be overwritten.
Public methodPicklistToString
Serializes the picklist values into a comma separated string.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments