Click or drag to resize
ITagPair Interface
A pair of tags (i.e. start and end) in the bilingual content model, with the content enclosed by the tag pair

Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2508.0)
Syntax
public interface ITagPair : IAbstractTag, 
	IAbstractDataContent, IAbstractMarkupData, ICloneable, IAbstractMarkupDataContainer, IList<IAbstractMarkupData>, 
	ICollection<IAbstractMarkupData>, IEnumerable<IAbstractMarkupData>, IEnumerable, 
	ISupportsUniqueId

The ITagPair type exposes the following members.

Properties
  NameDescription
Public propertyAllSubItems
An iterator that can be used to iterate over all child items - including sub-items - in the container.
(Inherited from IAbstractMarkupDataContainer.)
Public propertyCanBeSplit
Indicates whether it is possible to split this container into different parts by calling the Split(Int32) method.
(Inherited from IAbstractMarkupDataContainer.)
Public propertyCount (Inherited from ICollectionIAbstractMarkupData.)
Public propertyEndTagProperties
The tag properties communicated from the native file processing components that refer to the end tag of the paired tags
Public propertyEndTagRevisionProperties
Revision information directly associated with the end tag, or null if none
Public propertyHasSubSegmentReferences
True if there is one or more SubSegments for the tag.
(Inherited from IAbstractTag.)
Public propertyIndexInParent
The index of this item in its parent container (if any).
(Inherited from IAbstractMarkupData.)
Public propertyIsEndTagGhost
When true, the end tag of the tag pair has ghost status.

Ghost tags occur when either the start tag or the end tag of a tag pair has been deleted. Such operations would leave the tag pair in an invalid state until either the remaining start or end tag has been removed too (provided that the entire tag pair can be deleted properly). SDL Trados Studio supports this behavior in the editor by leaving the tag pair in place until both start and end tags have been deleted. While only one tag of a pair has been deleted, the "deleted" tag is temporarily marked as a (transparent) "ghost" tag, but retains its position.

Public propertyIsReadOnly (Inherited from ICollectionIAbstractMarkupData.)
Public propertyIsStartTagGhost

When true, the start tag of the tag pair has ghost status.

Ghost tags occur when either the start tag or the end tag of a tag pair has been deleted. Such operations would leave the tag pair in an invalid state until either the remaining start or end tag has been removed too (provided that the entire tag pair can be deleted properly). SDL Trados Studio supports this behavior in the editor by leaving the tag pair in place until both start and end tags have been deleted. While only one tag of a pair has been deleted, the "deleted" tag is temporarily marked as a (transparent) "ghost" tag, but retains its position.

Public propertyItem
Gets or sets the element at the specified index.
(Inherited from IListIAbstractMarkupData.)
Public propertyCode exampleLocations
Iterator for all possible locations in the collection and its sub-collections
(Inherited from IAbstractMarkupDataContainer.)
Public propertyParent
When this item is inside a markup data container, this property provides access to the parent container.
(Inherited from IAbstractMarkupData.)
Public propertyParentParagraph
Convenient accessor to the source or target paragraph container that the item appears in.
(Inherited from IAbstractMarkupData.)
Public propertyStartTagProperties
The tag properties communicated by the native file processing components that refer to the start tag of the paired tags
Public propertyStartTagRevisionProperties
Revision information that is directly associated with the start tag, or null if none
Public propertySubSegments
Information on any localizable content inside this tag
(Inherited from IAbstractTag.)
Public propertyTagProperties
Common properties of tag information as determined by the native file type processors
(Inherited from IAbstractTag.)
Public propertyUniqueId
The Unique ID associated with an object may be used by implementations during operations such as segmentation
(Inherited from ISupportsUniqueId.)
Top
Methods
  NameDescription
Public methodCode exampleAcceptVisitor
Part of the visitor pattern implementation for markup data. This method is overridden in each leaf implementation. The implementation should call the Visit... method on the visitor corresponding to their object type, passing themselves (i.e. this) as the parameter. Objects that contain other objects (e.g. implementations of ISegment or IOtherMarker) should NOT apply the visitor to their content items. It must be left to the visitor implementation to 'decide' whether the visitor 'wants' to visit the sub-items of a node.
(Inherited from IAbstractMarkupData.)
Public methodAdd (Inherited from ICollectionIAbstractMarkupData.)
Public methodAddSubSegmentReference
Appends a sub-segment reference to the list of sub-segments.
(Inherited from IAbstractTag.)
Public methodAddSubSegmentReferences
Appends a set of sub-segment references.
(Inherited from IAbstractTag.)
Public methodClear (Inherited from ICollectionIAbstractMarkupData.)
Public methodClearSubSegmentReferences
Removes all sub-segment references from the tag.
(Inherited from IAbstractTag.)
Public methodClone
Creates a new object that is a copy of the current instance.
(Inherited from ICloneable.)
Public methodContains (Inherited from ICollectionIAbstractMarkupData.)
Public methodCopyTo (Inherited from ICollectionIAbstractMarkupData.)
Public methodCode exampleFind(PredicateIAbstractMarkupData)
Returns the first item that matches the specified predecate.

The iteration is performed over all items and sub-items in this collection and all sub-collections until the item is located.

(Inherited from IAbstractMarkupDataContainer.)
Public methodCode exampleFind(PredicateLocation)
Returns the first location that matches the specified predecate. The iteration is performed over all locations in this collection and all sub-collections until the element is located.
(Inherited from IAbstractMarkupDataContainer.)
Public methodFind(Location, PredicateLocation)
Returns the first location that matches the specified predecate, starting at a specific location.
(Inherited from IAbstractMarkupDataContainer.)
Public methodForEachSubItem
Execute the specified action on each item and (recursively) each sub-item in this container.
(Inherited from IAbstractMarkupDataContainer.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableIAbstractMarkupData.)
Public methodGetLocationsFrom
Enumerator for locations starting from a specific location
(Inherited from IAbstractMarkupDataContainer.)
Public methodIndexOf (Inherited from IListIAbstractMarkupData.)
Public methodInsert (Inherited from IListIAbstractMarkupData.)
Public methodMoveAllItemsTo(IAbstractMarkupDataContainer)
Moves all items from this container into another one.
(Inherited from IAbstractMarkupDataContainer.)
Public methodMoveAllItemsTo(IAbstractMarkupDataContainer, Int32)
Moves all items from this container to a specific location in another container.
(Inherited from IAbstractMarkupDataContainer.)
Public methodMoveItemsTo(IAbstractMarkupDataContainer, Int32, Int32)
Moves a number of items from this container into another one.
(Inherited from IAbstractMarkupDataContainer.)
Public methodMoveItemsTo(IAbstractMarkupDataContainer, Int32, Int32, Int32)
Moves a number of items from this container into a specific location in another one.
(Inherited from IAbstractMarkupDataContainer.)
Public methodRemove (Inherited from ICollectionIAbstractMarkupData.)
Public methodRemoveAt (Inherited from IListIAbstractMarkupData.)
Public methodRemoveFromParent
Removes this node from its parent container (if any).
(Inherited from IAbstractMarkupData.)
Public methodRemoveSubSegmentReference
Removes the specified sub-segment reference.
(Inherited from IAbstractTag.)
Public methodSplit
Splits this container in two. After the split, this object will hold all items with index lower than the splitBeforeItemIndex parameter. The returned object is a clone of this object, which contains all other items.
(Inherited from IAbstractMarkupDataContainer.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments