Class Text
Represents a piece of text within a segment.
Inherited Members
      Object.Equals(Object, Object)
    
    
      Object.ReferenceEquals(Object, Object)
    
    
      Object.GetType()
    
    
      Object.MemberwiseClone()
    
  Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class Text : SegmentElementConstructors
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
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 | 
|---|---|
| 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 | 
|---|---|
| Int32 | A hash code for this object | 
Overrides
System.Object.GetHashCode()
  
  GetWeakHashCode()
Declaration
public override int GetWeakHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | A hash code, equivalent to GetHashCode(). | 
Overrides
ToString()
System.Object.ToString()
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| String | A string representation of the object, for display purposes. | 
Overrides
System.Object.ToString()