Try our conversational search powered by Generative AI!

Class TranslateEventArgs

Event arguments that is used to tranlate a text.

Inheritance
System.Object
System.EventArgs
TranslateEventArgs
Inherited Members
System.EventArgs.Empty
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: EPiServer.XForms
Assembly: EPiServer.XForms.dll
Version: 7.19.2
Syntax
[Obsolete("Custom translations using a special event on XForms has been removed in favor of new localization services")]
public class TranslateEventArgs : EventArgs

Constructors

TranslateEventArgs(String)

Initializes a new instance of the TranslateEventArgs class.

Declaration
public TranslateEventArgs(string textToTranslate)
Parameters
Type Name Description
System.String textToTranslate

The text to translate.

Properties

TextToTranslate

Gets the translation search path, for instance "/xform/requiredfield/inlineerrormessage".

Declaration
public string TextToTranslate { get; }
Property Value
Type Description
System.String

The translation search path.

TranslatedText

Gets or sets the translated text.

Declaration
public string TranslatedText { get; set; }
Property Value
Type Description
System.String

The translated text.

Methods

GetTranslatedText()

Gets the translated text. If no text has been translated the untranslated text will be returned.

Declaration
public string GetTranslatedText()
Returns
Type Description
System.String

The translated text. If no text has been translated the untranslated text will be returned.

Extension Methods