Search Results for

    Show / Hide Table of Contents

    Class Text

    Represents a piece of text within a segment.

    Inheritance
    object
    SegmentElement
    Text
    Inherited Members
    SegmentElement.GetSimilarity(SegmentElement)
    SegmentElement.GetSimilarity(SegmentElement, bool)
    SegmentElement.GetSimilarityAsync(SegmentElement)
    SegmentElement.GetSimilarityAsync(SegmentElement, bool)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.Core
    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
    SegmentElement.AcceptSegmentElementVisitor(ISegmentElementVisitor)

    Duplicate()

    See Duplicate()

    Declaration
    public override SegmentElement Duplicate()
    Returns
    Type Description
    SegmentElement

    A new instance that is a deep copy of this instance.

    Overrides
    SegmentElement.Duplicate()

    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
    object.Equals(object)

    GetHashCode()

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this object

    Overrides
    object.GetHashCode()

    GetWeakHashCode()

    See GetWeakHashCode()

    Declaration
    public override int GetWeakHashCode()
    Returns
    Type Description
    int

    A hash code, equivalent to GetHashCode().

    Overrides
    SegmentElement.GetWeakHashCode()

    ToString()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the object, for display purposes.

    Overrides
    object.ToString()
    In this article
    • Constructors
      • Text()
      • Text(string)
    • Properties
      • Value
    • Methods
      • AcceptSegmentElementVisitor(ISegmentElementVisitor)
      • Duplicate()
      • Equals(object)
      • GetHashCode()
      • GetWeakHashCode()
      • ToString()
    Back to top Generated by DocFX