Class Text
Represents a piece of text within a segment.
Inherited Members
Namespace: SdlSdl.LanguagePlatformCore
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
[DataContract]
public class Text : SegmentElement
Constructors
Text()
Initializes a new instance with default values (used for XML serialization only).
Declaration
public Text()
Text(string)
Initializes a new instance of the Text class with the specified string.
Declaration
public Text(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The string. |
Properties
Value
Gets or sets the string for this Text instance.
Declaration
[DataMember]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
AcceptSegmentElementVisitor(ISegmentElementVisitor)
Visitor pattern implementation. Calls VisitText(Text).
Declaration
public override void AcceptSegmentElementVisitor(ISegmentElementVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ISegmentElementVisitor | visitor | The visitor instance |
Overrides
Duplicate()
See Duplicate()
Declaration
public override SegmentElement Duplicate()
Returns
Type | Description |
---|---|
SegmentElement | A new instance that is a deep copy of this instance. |
Overrides
Equals(object)
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this object |
Overrides
GetWeakHashCode()
Declaration
public override int GetWeakHashCode()
Returns
Type | Description |
---|---|
int | A hash code, equivalent to GetHashCode(). |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the object, for display purposes. |