Search Results for

    Show / Hide Table of Contents

    Class EditActionChangeFieldValue

    Represents a single edit action which can be applied to a TU.

    Inheritance
    object
    EditAction
    EditActionChangeFieldValue
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory.EditScripts
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    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
    FieldValue v

    The field value to apply

    Mode m

    The field update mode.

    Properties

    FieldValue

    Gets or sets the field value to apply

    Declaration
    [DataMember]
    public FieldValue FieldValue { get; set; }
    Property Value
    Type Description
    FieldValue

    Mode

    Gets or sets the field update mode to apply

    Declaration
    [DataMember]
    public Mode Mode { get; set; }
    Property Value
    Type Description
    Mode

    Methods

    Apply(TranslationUnit)

    See Apply(TranslationUnit)

    Declaration
    public override bool Apply(TranslationUnit tu)
    Parameters
    Type Name Description
    TranslationUnit tu

    The TU to apply the edit action to

    Returns
    Type Description
    bool

    true if a change was made to the TU, and false otherwise.

    Overrides
    EditAction.Apply(TranslationUnit)

    Validate(IFieldDefinitions, bool)

    Validates the edit action against the provided field definitions.

    Declaration
    public override bool Validate(IFieldDefinitions fields, bool throwIfInvalid)
    Parameters
    Type Name Description
    IFieldDefinitions fields

    The field definitions to validate against.

    bool 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
    bool

    true if the edit action is valid, given the provided field definitions, and false otherwise.

    Overrides
    EditAction.Validate(IFieldDefinitions, bool)
    In this article
    • Constructors
      • EditActionChangeFieldValue(FieldValue, Mode)
    • Properties
      • FieldValue
      • Mode
    • Methods
      • Apply(TranslationUnit)
      • Validate(IFieldDefinitions, bool)
    Back to top Generated by DocFX