Click or drag to resize
Document Class
Contains the document implementation
Inheritance Hierarchy
SystemObject
  Sdl.TranslationStudioAutomation.IntegrationApiDocument

Namespace: Sdl.TranslationStudioAutomation.IntegrationApi
Assembly: Sdl.TranslationStudioAutomation.IntegrationApi (in Sdl.TranslationStudioAutomation.IntegrationApi.dll) Version: 4.2.0.0 (4.1.5799.0)
Syntax
public sealed class Document

The Document type exposes the following members.

Properties
  NameDescription
Public propertyActiveFile
Gets the active project file.
Public propertyActiveFileProperties
Gets the active file properties
Public propertyActiveSegmentPair
Gets the active segment pair.
Public propertyDisplayFilter
Get the active Display Filter The result will be null if the filter that has been applied on the document is derived from the internal provider. This should permit the developer to differentiate between the internal system filter provider and their own implementation and/or multiple implementations of the interface.
Public propertyFiles
Get the files of the document
Public propertyFilteredSegmentPairs
Get the filtered document segment pairs in a readonly mode
Public propertyFilteredSegmentPairsCount
The filtered document segment pairs count
Public propertyFocusedDocumentContent
Gets the focus document content
Public propertyIsTranslationProviderAvailable
Get a boolean value that indicate if a Translation Provider is available.
Public propertyItemFactory
Gets the factory for the document items
Public propertyMode
Gets the editing mode of the document
Public propertyProject
Gets the project of the document
Public propertyPropertiesFactory
Gets the factory for the item properties
Public propertySegmentPairs
Get the document segment pairs in a readonly mode
Public propertySelection
Gets the document selection
Public propertyTotalSegmentPairsCount
The total document segment pairs count
Top
Methods
  NameDescription
Public methodAddCommentOnSegment(String, String, Severity) Obsolete.
Adds a comment to the target segment
Public methodAddCommentOnSegment(ISegmentPair, String, Severity)
Adds a comment to the target segment
Public methodApplyFilterOnSegments
Apply filter on the segments from the active document in the editor
Public methodChangeConfirmationLevelOnSegment(String, ConfirmationLevel) Obsolete.
Sets the segment confirmation level to the specified value
Public methodChangeConfirmationLevelOnSegment(ISegmentPair, ConfirmationLevel)
Sets the segment confirmation level to the specified value
Public methodChangeTranslationOriginOnSegment(String, String) Obsolete.
Sets the translation origin for the specified segment to the specified origin type
Public methodChangeTranslationOriginOnSegment(ISegmentPair, String)
Sets the translation origin for the specified segment to the specified origin type
Public methodDeleteAllCommentsOnSegment(String) Obsolete.
Delete all comments from the target segment.
Public methodDeleteAllCommentsOnSegment(ISegmentPair)
Delete all comments from the target segment.
Public methodDeleteCommentOnSegment(String, IComment) Obsolete.
Delete a specific comment from the target segment.
Public methodDeleteCommentOnSegment(ISegmentPair, IComment)
Delete a specific comment from the target segment.
Public methodGetActiveSegmentPair
Get the active segment pair in a readonly mode.
Public methodGetCommentsFromSegment(String) Obsolete.
Obtain all comments existing from the target segment
Public methodGetCommentsFromSegment(ISegmentPair)
Obtain all comments existing from the target segment
Public methodGetSegmentPairsFromParagraph
Get the segment pairs from a specific paragraph
Public methodProcessSegmentPair(String, String, ActionISegmentPair, CancelEventArgs) Obsolete.
Processing a single specific segment pair with the ability to alter the source and/or target
Public methodProcessSegmentPair(ISegmentPair, String, ActionISegmentPair, CancelEventArgs)
Processing a single specific segment pair with the ability to alter the source and/or target
Public methodProcessSegmentPairs
Processing the document segment pairs with the ability to alter the source and/or target
Public methodSetActiveSegmentPair(String) Obsolete.
Public methodSetActiveSegmentPair(String, String)
Sets the active segment pair to the segment pair with the given paragraphId and segmentNumber.
Public methodSetActiveSegmentPair(ProjectFile, String)
Sets the active segment pair to the segment pair with the given number.
Public methodTryTranslateActiveSegment
Tries to initiate the translation process for the active segment.
Public methodUpdateCommentOnSegment(String, IComment, String, Severity) Obsolete.
Update a comment text and severity on the target segment
Public methodUpdateCommentOnSegment(ISegmentPair, IComment, String, Severity)
Update a comment text and severity on the target segment
Public methodUpdateParagraphUnitProperties
Directly update the properties of a paragraph unit
Public methodUpdateSegmentPair
Directly update a segment pair in the document
Public methodUpdateSegmentPairProperties(ISegmentPairProperties) Obsolete.
Directly update the properties of a segment pair, without processing the whole segment pair
Public methodUpdateSegmentPairProperties(ISegmentPair, ISegmentPairProperties)
Directly update the properties of a segment pair, without processing the whole segment pair
Top
Events
  NameDescription
Public eventActiveFileChanged
Triggered when the active file is changed.
Public eventActiveFilePropertiesChanged
Triggered when the properties of the active file are changed
Public eventActiveSegmentChanged
Triggered when the active segment is changed.
Public eventActiveSegmentContentIsReady
The event is triggered when the content for the active segment is ready and it can be modified by a third party application.
Public eventContentChanged
Triggered when document content is changed.
Public eventDocumentFilterChanged
Triggered when the document filter has changed.
Public eventSegmentsConfirmationLevelChanged
The event is triggered when a ConfirmationLevel is changed for a Segment.
Public eventSegmentsTranslationOriginChanged
The event is triggered when a TranslationOrigin is changed for a Segment.
Top
See Also
Community
Edit

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