Class EditActionChangeFieldValue
An Edit
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.TranslationMemory.EditScripts
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class EditActionChangeFieldValue : EditAction
Constructors
EditActionChangeFieldValue(FieldValue, Mode)
Initializes a new instance with the specified values.
Declaration
public EditActionChangeFieldValue(FieldValue v, Mode m)
Parameters
Type | Name | Description |
---|---|---|
Field |
v | The field value to apply |
Mode | m | The field update mode. |
Properties
FieldValue
Gets or sets the field value to apply
Declaration
public FieldValue FieldValue { get; set; }
Property Value
Type | Description |
---|---|
Field |
Mode
Gets or sets the field update mode to apply
Declaration
public Mode Mode { get; set; }
Property Value
Type | Description |
---|---|
Mode |
Methods
Apply(TranslationUnit)
Declaration
public override bool Apply(TranslationUnit tu)
Parameters
Type | Name | Description |
---|---|---|
Translation |
tu | The TU to apply the edit action to |
Returns
Type | Description |
---|---|
System. |
|
Overrides
Validate(IFieldDefinitions, Boolean)
Declaration
public override bool Validate(IFieldDefinitions fields, bool throwIfInvalid)
Parameters
Type | Name | Description |
---|---|---|
IField |
fields | The field definitions to validate against. |
System. |
throwIfInvalid | If true, an exception will be thrown if invalid field names or other issues are encountered. If false, the return value will be set to false without an exception being thrown. |
Returns
Type | Description |
---|---|
System. |
|