Class PicklistItemDefinition
Represents a picklist item definition, which is a possible value that can be assigned to a picklist field. See PicklistItems.
Implements
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class PicklistItemDefinition : INotifyPropertyChanged
Constructors
PicklistItemDefinition()
Creates a new picklist field definition.
Declaration
public PicklistItemDefinition()
PicklistItemDefinition(string)
Creates a new picklist field definition with the specified name.
Declaration
public PicklistItemDefinition(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the picklist field. |
Fields
MaximumNameLength
The maximum length of a picklist item name.
Declaration
public static readonly int MaximumNameLength
Field Value
Type | Description |
---|---|
int |
Properties
Id
Gets a unique Id for this picklist item definition.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
Guid |
Name
Gets or sets the name of the picklist field definition.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
Note that you have to save the translation memory of the fields template to persists the change after setting this property, depending on whether the field belongs to a translation memory or a fields template.
Methods
Clone()
Creates a deep copy of this picklist field definition.
Declaration
public PicklistItemDefinition Clone()
Returns
Type | Description |
---|---|
PicklistItemDefinition | A deep copy of the picklist field definition. |