Search Results for

    Show / Hide Table of Contents

    Class Placeable

    A placeable is a combination of a source token index together with a target token index. Either index can be -1, indicating that no corresponding token pair exists (or no appropriate segment was available). Not both of the indices should be -1.

    Inheritance
    System.Object
    Placeable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class Placeable

    Constructors

    Placeable()

    Initializes a new instance with default values.

    Declaration
    public Placeable()

    Placeable(PlaceableType, Int32, Int32)

    Initializes a new instance with the specified parameters.

    Declaration
    public Placeable(PlaceableType t, int sourceTokenIndex, int targetTokenIndex)
    Parameters
    Type Name Description
    PlaceableType t

    The placeable type.

    System.Int32 sourceTokenIndex

    The index of the token in the source segment. -1 indicates that the token is not present in that segment.

    System.Int32 targetTokenIndex

    The index of the token in the target segment. -1 indicates that the token is not present in that segment

    Properties

    IsTag

    Gets a flag which indicates whether this placeable is a tag.

    Declaration
    public bool IsTag { get; }
    Property Value
    Type Description
    System.Boolean

    SourceTokenIndex

    Gets or sets the source-segment token index for the placeable. That index may be -1, indicating that there is no source segment (rare) or no token in the source segment is linked to the target token.

    Declaration
    public int SourceTokenIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    TargetTokenIndex

    Gets or sets the target-segment token index for the placeable. That index may be -1, indicating that there is no target segment or no token in the target segment is linked to the source token.

    Declaration
    public int TargetTokenIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Type

    Gets or sets the placeable type.

    Declaration
    public PlaceableType Type { get; set; }
    Property Value
    Type Description
    PlaceableType

    Methods

    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(object)
    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    IsTagCompatible(TagType)

    Determines whether the placeable's type is compatible with the specified tag type. The result is always false for non-tag placeables.

    Declaration
    public bool IsTagCompatible(TagType tagType)
    Parameters
    Type Name Description
    TagType tagType

    The type of the tag to check

    Returns
    Type Description
    System.Boolean

    true if the placeable's type is compatible with the specified tag type, and false otherwise.

    On this page

    Back to top Generated by DocFX