Click or drag to resize
EditActionSearchReplace Class
An edit action to run a search/replace operation. Note that the search pattern will generally not be found if the text is interrupted by tags.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemory.EditScriptsEditAction
    Sdl.LanguagePlatform.TranslationMemory.EditScriptsEditActionSearchReplace

Namespace: Sdl.LanguagePlatform.TranslationMemory.EditScripts
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public class EditActionSearchReplace : EditAction

The EditActionSearchReplace type exposes the following members.

Constructors
  NameDescription
Public methodEditActionSearchReplace
Initializes a new instance of the EditActionSearchReplace class
Top
Properties
  NameDescription
Public propertyApplyToTarget
If true, the S/R will be applied to the target segment. If false (default), it will be applied to the source segment.
Public propertyIgnoreCase
Gets or sets a flag whether or not to apply the pattern matching in a case-insensitive manner. For literal searches, some "intelligent" casing will be applied to the replacement. For regular expression searches, see .Net's regex documentation how case-insensitive S/R is handled.
Public propertyPatternType
Gets or sets the type of the pattern. When searching literal patterns, the replacement must also be a literal pattern. When searching regular expression patterns, the replacement will also be interpreted as a regular expression replacement pattern.
Public propertyReplacementPattern
Gets or sets the replacement for the search pattern, if found.
Public propertySearchPattern
Gets or sets the pattern to search. If this is a regular expression, it will later be compiled with the CultureInvariant and the IgnoreCase options (if the IgnoreCase flag is set. No other regular expression flags will be applied.
Top
Methods
  NameDescription
Public methodApply (Overrides EditActionApply(TranslationUnit).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
See Validate(IFieldDefinitions, Boolean). Always returns true for instances of this class.
(Overrides EditActionValidate(IFieldDefinitions, Boolean).)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments