Class EditActionDeleteTags
An edit action which will remove all tags from the TU's segments. Depending on the placeholder replacement mode, textholder tags are either deleted or kept. It is recommended to keep text placeholders, as otherwise the linguistic structure of the segment may be corrupted.
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory.EditScripts
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class EditActionDeleteTags : EditAction
Constructors
EditActionDeleteTags()
Initializes a new instance with default values (standalone tags and paired tags will be deleted)
Declaration
public EditActionDeleteTags()
EditActionDeleteTags(Segment.DeleteTagsAction)
Initializes a new instance with the specified values.
Declaration
public EditActionDeleteTags(Segment.DeleteTagsAction mode)
Parameters
Type | Name | Description |
---|---|---|
Segment.DeleteTagsAction | mode | The set of tags to delete |
Properties
DeleteTagsAction
Gets or sets the tag deletion mode.
Declaration
public Segment.DeleteTagsAction DeleteTagsAction { get; set; }
Property Value
Type | Description |
---|---|
Segment.DeleteTagsAction |
Methods
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 |
---|---|
System.Boolean |
|
Overrides
Validate(IFieldDefinitions, Boolean)
See Validate(IFieldDefinitions, Boolean). Always returns true
for this class.
Declaration
public override bool Validate(IFieldDefinitions fields, bool throwIfInvalid)
Parameters
Type | Name | Description |
---|---|---|
IFieldDefinitions | fields | The field definitions to validate against. |
System.Boolean | 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.Boolean |
|