Class SinglePicklistFieldValue
Represents a single picklist field value.
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class SinglePicklistFieldValue : FieldValue
Constructors
SinglePicklistFieldValue()
Initializes a new instance with default values.
Declaration
public SinglePicklistFieldValue()
SinglePicklistFieldValue(SinglePicklistFieldValue)
Initializes a new instance of the SinglePicklistFieldValue from another instance.
Declaration
public SinglePicklistFieldValue(SinglePicklistFieldValue other)
Parameters
Type | Name | Description |
---|---|---|
SinglePicklistFieldValue | other | The other instance. |
SinglePicklistFieldValue(String)
Initializes a new instance of the SinglePicklistFieldValue with the specified field name;
Declaration
public SinglePicklistFieldValue(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The field name. |
SinglePicklistFieldValue(String, PicklistItem)
Initializes a new instance of the SinglePicklistFieldValue with the specified field name and value.
Declaration
public SinglePicklistFieldValue(string name, PicklistItem v)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The field name. |
PicklistItem | v | The picklist value. |
Properties
Value
Gets or sets the value for this instance.
Declaration
public PicklistItem Value { get; set; }
Property Value
Type | Description |
---|---|
PicklistItem |
ValueType
Gets the field value type. Always returns FieldValueType.SinglePicklist
Declaration
public override FieldValueType ValueType { get; set; }
Property Value
Type | Description |
---|---|
FieldValueType |
Overrides
Methods
Add(FieldValue)
See Add(FieldValue)
Declaration
public override bool Add(FieldValue rhs)
Parameters
Type | Name | Description |
---|---|---|
FieldValue | rhs | The field value to add. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Add(String)
See Add(String)
Declaration
public override bool Add(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | The new value to be added. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Clear()
See Clear()
Declaration
public override void Clear()
Overrides
Duplicate()
Creates a new instance that is a deep copy of this instance.
Declaration
public override FieldValue Duplicate()
Returns
Type | Description |
---|---|
FieldValue | A new instance that is a deep copy of this instance. |
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
GetValueString()
See GetValueString()
Declaration
public override string GetValueString()
Returns
Type | Description |
---|---|
System.String | A serialized string representation of the field value, which is suitable for persisting, and can be parsed through Parse(String). |
Overrides
Merge(FieldValue)
Declaration
public override bool Merge(FieldValue rhs)
Parameters
Type | Name | Description |
---|---|---|
FieldValue | rhs | The object to merge with. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Parse(String)
See Parse(String)
Declaration
public override void Parse(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | The string that contains the serialized form. |
Overrides
Substract(FieldValue)
Declaration
public override bool Substract(FieldValue rhs)
Parameters
Type | Name | Description |
---|---|---|
FieldValue | rhs | The field value to substract. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of the object, for display purposes. |