Class PlaceableAssociation
A placeable association is a correspondence between two placeables, one in the source segment, and one in the target segment. Either may be null, but not both at the same time. If a placeable is null and the other isn't, it means that the respective segment wasn't available when the placeables were computed, or that no association could be found.
Inheritance
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class PlaceableAssociation
Constructors
PlaceableAssociation(Placeable, Placeable)
Initializes a new instance with the specified placeables.
Declaration
public PlaceableAssociation(Placeable docPlaceable, Placeable memPlaceable)
Parameters
Type | Name | Description |
---|---|---|
Placeable | docPlaceable | The placeable found in the document TU or segment. |
Placeable | memPlaceable | The placeable found in the memory TU or segment. |
Properties
Document
Gets or sets the source-segment placeable.
Declaration
public Placeable Document { get; set; }
Property Value
Type | Description |
---|---|
Placeable |
Memory
Gets or sets the memory-segment placeable.
Declaration
public Placeable Memory { get; set; }
Property Value
Type | Description |
---|---|
Placeable |
Type
Returns the type of this placeable association, which is the type of either placeable contained in it.
Declaration
public PlaceableType Type { get; }
Property Value
Type | Description |
---|---|
PlaceableType |
Methods
AreAssociable(Placeable, Placeable)
Placeables can be associated if they are of the same type, or if one is a text placeholder and the other is a normal standalone tag.
Declaration
public static bool AreAssociable(Placeable a, Placeable b)
Parameters
Type | Name | Description |
---|---|---|
Placeable | a | |
Placeable | b |
Returns
Type | Description |
---|---|
System.Boolean |