Click or drag to resize
IParagraph Interface
Container for the source or target content in a IParagraphUnit; this often corresponds to a paragraph of localizable content in one language.

Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public interface IParagraph : IAbstractMarkupDataContainer, 
	IList<IAbstractMarkupData>, ICollection<IAbstractMarkupData>, IEnumerable<IAbstractMarkupData>, 
	IEnumerable, ICloneable

The IParagraph 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 propertyIsSource
True if the paragraph is the Source of the Parent.
Public propertyIsTarget
True if the paragraph is the Target of the Parent.
Public propertyCode exampleLocations
Iterator for all possible locations in the collection and its sub-collections
(Inherited from IAbstractMarkupDataContainer.)
Public propertyParent
The parent paragraph unit this paragraph belongs to
Public propertyTextDirection
The text direction of the paragraph. This directionality overrides any document-level directionality unless it is set to Inherit.
Top
Methods
  NameDescription
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 methodGetLocationsFrom
Enumerator for locations starting from a specific location
(Inherited from IAbstractMarkupDataContainer.)
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 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
Remarks

A paragraph is a markup data container, but does not implement IAbstractMarkupData. It acts as the root container for the source or target content in a paragraph.

Paragraphs are only used as Source or Target members; they are never created as standalone objects.

The IsSource and IsTarget properties can be used to quickly find out if this is the source or target part of the Parent paragraph unit.

See Also
Community
Edit

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