| EditActionRenameField Class |
If a field is renamed but a value with that renamed field value already exists, the original field value will be dropped. Note that the field type will remain as is.
The action can also be used to rename picklist values. If the PicklistValueMap is non-null, then that mapping will be applied to the values of picklist fields. If you only want to rename the picklist values, but not the field itself, set ToName to the same value as FromName.
Namespace: Sdl.LanguagePlatform.TranslationMemory.EditScripts
The EditActionRenameField type exposes the following members.
| Name | Description | |
|---|---|---|
| EditActionRenameField |
Initializes a new instance with the specified values.
|
| Name | Description | |
|---|---|---|
| FromName |
Gets or sets the field name prior to the change.
| |
| PicklistValueMap |
Gets or sets a picklist value name mapping for picklist values. This will only be applied to picklist fields.
| |
| ToName |
Gets or sets the new field name. Cannot be a reserved field name (i.e. a system field).
|
| Name | Description | |
|---|---|---|
| Apply | (Overrides EditActionApply(TranslationUnit).) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Validate | (Overrides EditActionValidate(IFieldDefinitions, Boolean).) |