Class Text
Represents a piece of text within a segment.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
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 |
---|---|---|
System.String | text | The string. |
Properties
Value
Gets or sets the string for this Text instance.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
System.Object.GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this object |
Overrides
System.Object.GetHashCode()
GetWeakHashCode()
Declaration
public override int GetWeakHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code, equivalent to GetHashCode(). |
Overrides
ToString()
System.Object.ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of the object, for display purposes. |
Overrides
System.Object.ToString()