Class PicklistItemDefinition
Represents a picklist item definition, which is a possible value that can be assigned to a picklist field. See PicklistItems.
Inheritance
System.Object
PicklistItemDefinition
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class PicklistItemDefinition
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 |
---|---|---|
System.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 |
---|---|
System.Int32 |
Properties
Id
Gets a unique Id for this picklist item definition.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Name
Gets or sets the name of the picklist field definition.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.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. |
Implements
System.ComponentModel.INotifyPropertyChanged