• Articles
  • Trados Studio APIs
  • Trados Studio APIs
  • Translation Memory
  • API Reference
  • Sdl.LanguagePlatform.Core
  • Segment
Search Results for

    Show / Hide Table of Contents
    • Overview
    • Core
      • Plug-in Framework Overview
      • Basic Use Cases
        • Basic Use Cases
        • Defining an Extension Point
        • Creating Extensions
        • Creating the Host Apllication
      • Advanced Use Cases
        • Advanced Use Cases
        • The Plug-in Registry
        • Object Registry
        • Auxiliary Extension Attributes
        • Sortable Extension Points
        • Plug-in Resources and Localizability
        • Deployment
        • Plug-in State
        • Plug-in State Handlers
        • The Plug-in Manifest Generator
        • Compile-time Validation
        • Serialization Performance
      • API Reference
        • Sdl.Core.Globalization
          • Codepage
          • ConfirmationLevel
          • Language
          • LanguageCancelEventArgs
          • LanguageDisplaySettings
          • LanguageEventArgs
          • LanguageFormat
          • LegacySdlxLanguage
          • LegacyTradosLanguage
          • LocalizableString
          • UnsupportedCodepageException
          • UnsupportedLanguageException
        • Sdl.Core.Globalization.LanguageRegistry
          • AlternativeLanguageCode
          • LanguageRegistry
          • LanguageRegistryApi
          • MappingType
          • Product
        • Sdl.Core.Globalization.NumberMetadata
          • DoubleNumberGrammarRange
          • IntNumberGrammarRange
          • NumberGrammarRangeSet
          • NumberMetadata
          • NumberMetadataApi
          • NumberMetadataRegistry
          • NumberMetadataRegistryException
          • RangeOperator
          • RangeTransform
        • Sdl.Core.Globalization.UnitMetadata
          • LabelValueCondition
          • LabelValueSet
          • UnitDefinition
          • UnitDefinitionSet
          • UnitMetadata
          • UnitMetadataApi
          • UnitMetadataRegistry
          • UnitMetadataRegistryException
          • UnitMetadataSet
        • Sdl.Core.PluginFramework
          • AuxiliaryExtensionAttribute
          • AuxiliaryExtensionAttributeCollection
          • DefaultObjectResolver
          • DefaultPluginLocator
          • DefaultPluginTypeLoader
          • ExtensionAttribute
          • ExtensionCollection
          • ExtensionEventArgs
          • ExtensionPointBehavior
          • ExtensionPointCollection
          • ExtensionPointInfoAttribute
          • FileBasedPluginDescriptor
          • IExtension
          • IExtensionAware
          • IExtensionPoint
          • InitializePluginCompletedEventArgs
          • InitializePluginProgressChangedEventArgs
          • InvalidSdlAssemblyReference
          • IObjectResolver
          • IPlugin
          • IPluginCache
          • IPluginDescriptor
          • IPluginFilter
          • IPluginInitializer
          • IPluginLocator
          • IPluginRegistry
          • IPluginStateHandler
          • IPluginTypeLoader
          • IThirdPartyPluginDescriptor
          • IValidatingPluginLocator
          • ObjectFactory
          • ObjectRegistry<TExtensionAttribute, TExtensionType>
          • PluginAttribute
          • PluginCollection
          • PluginFrameworkException
          • PluginId
          • PluginInitializationResult
          • PluginInitializationResultsEventArgs
          • PluginInitializedCallback
          • PluginLoadExceptionEventArgs
          • PluginManager
          • PluginResourceAttribute
          • PluginState
          • PluginStatus
          • SdlAssemblyReferenceError
          • ValidatingSystemPluginLocator
          • XmlPluginCache
        • Sdl.Core.PluginFramework.Configuration
          • ConfigManager
          • IFrameworkConfiguration
        • Sdl.Core.PluginFramework.Integration
          • ExtensionArguments
          • ExtensionBuilderAttribute
          • ExtensionsFactory
          • ExtensionsRepository
          • ExtensionStoreItem
          • IExtensionBuilder
          • ValuePairTypeInstance
        • Sdl.Core.PluginFramework.Util
          • ExtensionSorter
          • ITopologicalSortable
          • SortableExtensionAttribute
          • SortedObjectRegistry<TSortableExtensionAttribute, TExtensionType>
          • TopologicalExtensions
          • TopologicalSort<T>
        • Sdl.Core.PluginFramework.Validation
          • IExtensionAttributeInfo
          • IExtensionValidationContext
        • Sdl.Core.Settings
          • AbstractSettingsGroupBase
          • AbstractSettingsPage
          • ISettingsBundle
          • ISettingsBundleAware
          • ISettingsGroup
          • ISettingsPage
          • Setting<T>
          • SettingsChangedEventArgs
          • SettingsGroup
          • SettingsUtil
        • Sdl.Core.Settings.Implementation
          • AbstractSettingsBundleAware
          • SettingsGroupTypeDescriptionProvider
          • SettingsGroupTypeDescriptor
        • Sdl.Core.Settings.Implementation.Json
          • JsonSettingImpl<T>
          • JsonSettingsBundle
          • JsonSettingsGroup
        • Sdl.Core.Settings.Implementation.Xml
          • XmlSettingImpl<T>
    • File Type Support
      • Introduction to this SDK
        • File Type Framework Overview
        • What can you do with the File Type Support SDK?
        • How Translators Work
          • Opening a document for translation
          • Creating Projects
          • Merging files
          • Moving files between machines
          • File type settings
          • Using context information
          • Tag display modes
          • Using QuickInserts
          • Verifying files
          • Previewing files
          • Saving to different file types
        • Used Terminology
      • The File Type Support Framework
        • File Type Support - Overview
        • The Filter Component Builder
        • Extending the Filter Component Builder
        • The File Type Plug-in Lifecycle
        • What a File Type Plug-in Must Do
        • Creating a Native File Type Plug-in
          • The Theory
            • Overview of the Native API
            • The File Sniffer
            • The File Parser
            • The File Writer
            • The File Context
            • Native File Tweakers
            • Text Formattings
            • Reporting Problems
            • Filter UI Settings
            • Segmentation Hints
            • The Filter Preview
          • How to Create a Plug-in for Processing Native Formats
            • Introduction
            • Creating a New Project
            • Build the File Type Plug-in
            • The Resources File
            • Adding the File Type Component Builder
            • Implementing the File Sniffer
            • User Communication Through Messaging
            • Implementing the File Parser
            • Processing Inline Formatting
            • Implementing the File Writer
            • Implementing File Preview Functionality
              • Implementing an External File Preview
              • Implementing an Internal Preview
                • Introduction
                • Implementing a Static Preview
                  • Modifying the File Type Component Builder
                  • Implementing the Preview Writer
                • Implementing a Dynamic Real-time Preview
                  • Modifying the File Type Component Builder
                  • Enhancing the Preview File Writer
                  • Adding a Preview UI Control
                  • Adding a Preview Controller
                  • Appendix - Real-time Preview for XML Files
            • Further Enhance Your Plug-in
              • Introduction
              • Implementing QuickInsert Functionality
              • Locking Specific Strings
              • Loading and Saving the Settings
              • Creating a New Assembly for the Settings UI
              • Implementing the Settings UI
              • Implementing the UI Controller Class
              • Enhancing the File Parser to Process the Settings
              • Extending the Configuration Options
              • Processing Placeholder Tags
              • Handling Tags During Segmentation
              • Creating a Native File Tweaker
          • Sample Projects
        • Create a Bilingual File Type Plug-in
          • The Theory
            • Overview of the Bilingual API
            • The File Sniffer
            • The Bilingual File Parser
            • The Bilingual File Writer
            • IMarkupDataVisitor
            • Filter UI Settings
          • How to Create a Bilingual File Type Plug-in
            • Introduction
            • About the Example BIL Format
            • Creating a New Project
            • Adding the File Type Component Builder
            • Implementing the File Sniffer
            • Implementing the File Parser
              • Opening the File for Parsing
              • Outputting Segment Pairs
              • Processing Inline Tags
              • Applying Character Formatting
              • Applying the Segment Pair Confirmation Levels
              • Adding Context Information
              • Extracting Comments
              • Putting it all Together
            • Implementing the File Writer
              • Adding the File Writer Class
              • Adding the Text Extractor Class
              • Generating the Paragraph Units
              • Mapping the Segment Confirmation Levels
              • Outputting all Comments
        • Creating Sub Content Processors
          • Sub Content Overview
          • Sub Content Component Builder
          • The Main Parser
          • The Main Writer
          • The Sub Content Parser
          • The Sub Content Writer
          • Settings Page Example
      • The Verification Framework
        • How to Create a Native Verifier
          • Introduction
          • Create a New Project
          • Add a Resources File
          • Implement the User Interface
          • Loading and Saving the Settings
          • Implement the UI Controller Class
          • Implement the Verification Logic
          • Extending existing File Type Component Builder
        • How to Create a Bilingual Verifier
          • Introduction
          • Create a New Project
          • Add a Resources File
          • Implement the User Interface
          • Loading and Saving the Settings
          • Implement the UI Controller Class
          • Implement the Verification Logic
          • Create a New File Type Component Builder
        • How to Create a Global Verifier
          • Introduction
      • API Reference
        • Sdl.FileTypeSupport.Filters.Verifiers.GenericTagVerifier
          • GenericTagVerifier
          • GenericVerifierSettings
          • MatchedItem
        • Sdl.FileTypeSupport.Filters.Verifiers.GenericTagVerifier.Properties
          • Resources
        • Sdl.FileTypeSupport.Framework
          • Direction
          • FileJanitor
          • FileTypeDefinitionId
          • FileTypeSupportException
          • Pair<FirstType, SecondType>
          • TempFileManager
          • UserCancelledException
          • VersionInfo
        • Sdl.FileTypeSupport.Framework.BilingualApi
          • AbstractBilingualContentHandler
          • AbstractBilingualContentProcessor
          • AbstractBilingualFileTypeComponent
          • AbstractBilingualParser
          • BilingualContentMessageReporterProxy
          • DependencyFileLocator
          • IAbstractDataContent
          • IAbstractMarker
          • IAbstractMarkupData
          • IAbstractMarkupDataContainer
          • IAbstractTag
          • IBilingualContentHandler
          • IBilingualContentMessageReporter
          • IBilingualContentMessageReporterWithExtendedData
          • IBilingualContentProcessor
          • IBilingualDocumentFileWriter
          • IBilingualDocumentOutputProperties
          • IBilingualDocumentOutputPropertiesAware
          • IBilingualDocumentParser
          • IBilingualDocumentWriter
          • IBilingualFileTypeComponent
          • IBilingualParser
          • IBilingualToNativeConverter
          • IBilingualVerifier
          • IBilingualWriter
          • ICommentMarker
          • IDocumentItemFactory
          • IDocumentProperties
          • IFileProperties
          • ILocationMarker
          • ILockedContainer
          • ILockedContent
          • IMarkupDataVisitor
          • INativeToBilingualConverter
          • IOtherMarker
          • IParagraph
          • IParagraphUnit
          • IPlaceholderTag
          • IRepetitionsTable
          • IRevisionMarker
          • IRevisionProperties
          • ISegment
          • ISegmentPair
          • ISerializableMarkupDataContainer
          • IStructureTag
          • ISubSegmentReference
          • ITagPair
          • IText
          • LevelLocation
          • Location
          • NotSplittableException
          • RevisionType
          • TextLocation
        • Sdl.FileTypeSupport.Framework.Core.IntegrationApi
          • IFileTypeSettingsConverterComponentBuilder
          • IProjectAware
        • Sdl.FileTypeSupport.Framework.Core.Settings
          • AbstractFileTypeSettingsPage<SettingsControlType, SettingsType>
          • ComplexObservableList<T>
          • DeserializeFileInfo
          • FileSerializer
          • FileTypeSettingsBase
          • FileTypeSettingsPageAttribute
          • FontMappingRule
          • FontMappingSettings
          • FormattingGroupSettings
          • IAbstractSettingsPage
          • IFileTypeConfigurationAware
          • IFileTypeSettingsAware<SettingsType>
          • IFileTypeSettingsConverter
          • IFileTypeSettingsPage
          • ISerializableListItem
          • ObservableDictionary<TKey, TValue>
          • ObservableList<T>
        • Sdl.FileTypeSupport.Framework.Core.Settings.Constants
          • SettingsConstants
        • Sdl.FileTypeSupport.Framework.Core.Settings.JsonSettings
          • FileTypeSettingsJson
          • FileTypeSettingsUtil
        • Sdl.FileTypeSupport.Framework.Core.Settings.QuickInserts
          • BaseMarkupDataType
          • MarkupDataFactory
          • PlaceholderTagMarkup
          • QuickInsertSettings
          • QuickInsertsSettings
          • TagPairMarkup
          • TextMarkup
          • TextPairMarkup
        • Sdl.FileTypeSupport.Framework.Core.Settings.Serialization
          • AbstractSettingsClass
          • GenericFileTypeSettingsConverter
          • ISettingsClass
          • IValueGetter
          • IValueProcessor
          • SettingsBundleConverterMethod
          • SettingsFormatConverter
        • Sdl.FileTypeSupport.Framework.Core.Utilities
          • FileEncoding
          • PredicateAdapter<AdapteeType, TargetType>
        • Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi
          • BilingualContentHandlerAdapter
          • BufferedBilingualContentHandler
          • CharacterCountingIterator
          • CharacterCountingIterator.EndOfItemCharacterCounterVisitor
          • CharacterCountingIterator.ICharacterCountingVisitor
          • CharacterCountingIterator.StartOfItemCharacterCounterVisitor
          • CompleteHandler
          • Constants
          • DefaultDocumentItemFactory
          • EventFiringBilingualProcessor
          • ExistingContentHandling
          • FileCompleteHandler
          • InitializeHandler
          • InvalidEncodingRemovalVisitor
          • ParagraphUnitBuffer
          • ProcessParagraphUnitHandler
          • SetFilePropertiesHandler
          • SourceToTargetCopier
          • TextCollectionVisitor
        • Sdl.FileTypeSupport.Framework.Core.Utilities.Constants
          • Characters
        • Sdl.FileTypeSupport.Framework.Core.Utilities.Encryption
          • EncryptionConstants
        • Sdl.FileTypeSupport.Framework.Core.Utilities.Formatting
          • ColorUtilitesResources
          • ColorUtilities
          • FormattingGroup
          • FormattingInflator
          • FormattingItemFactory
          • FormattingStack
        • Sdl.FileTypeSupport.Framework.Core.Utilities.IntegrationApi
          • AbstractQuickTagBuilder
          • AlignmentDefaults
          • BilingualMessageLocation
          • Constants
          • DefaultFileTypeManager
          • DefaultQuickTagInfo
          • FilePathProvider
          • FolderPathProvider
          • Framework1ExternalPreviewException
          • QuickTagDefaults
        • Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi
          • AbstractFilePostTweaker
          • AbstractFilePreTweaker
          • DefaultPersistentFilePropertiesKeys
          • DefaultPropertiesFactory
          • DefaultTranslationOrigin
          • DefaultTranslationOriginPropertiesKeys
          • LengthTypes
          • LineNumberTracker
          • MetaDataTypes
          • RegExFilePostTweaker
          • RegExFilePreTweaker
          • SeverityTypes
          • StandardContextTypes
          • StandardContextTypes.ContextData
          • TMMatchContextTypes
          • TMTranslationOriginMetaData
        • Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi.Buffer
          • AbstractContentItem
          • ChangeContextContentItem
          • CommentEndContentItem
          • CommentStartContentItem
          • CustomInfoContentItem
          • InlineEndTagContentItem
          • InlinePlaceholderTagContentItem
          • InlineStartTagContentItem
          • LocationMarkContentItem
          • LockedContentEndContentItem
          • LockedContentStartContentItem
          • NativeBuffer
          • ParagraphComments
          • ParagraphUnitEndContentItem
          • ParagraphUnitStartContentItem
          • RevisionEndContentItem
          • RevisionStartContentItem
          • SegmentEndContentItem
          • SegmentStartContentItem
          • StructureTagContentItem
          • TextContentItem
        • Sdl.FileTypeSupport.Framework.Core.Utilities.Properties
          • Resources
        • Sdl.FileTypeSupport.Framework.Formatting
          • AbstractBooleanFormatting
          • AbstractFormattingItem
          • BackgroundColor
          • Bold
          • FontName
          • FontSize
          • IFormattingGroup
          • IFormattingItem
          • IFormattingItemFactory
          • IFormattingVisitor
          • Italic
          • Strikethrough
          • TextColor
          • TextDirection
          • TextPosition
          • TextPosition.SuperSub
          • Underline
          • UnknownFormatting
        • Sdl.FileTypeSupport.Framework.IntegrationApi
          • AbstractFileTypeDefinitionComponent
          • AbstractSingleFileRefreshablePreviewController
          • AbstractSourceAndTargetFileRefreshablePreviewController
          • BatchProgressEventArgs
          • BilingualDocumentOutputPropertiesProvider
          • BilingualParserFactory
          • BilingualVerifiersProvider
          • DynamicFilterComponentBuilder
          • ExtendedMessageEventData
          • FileNotSupportedException
          • FileTypeComponentBuilderAttribute
          • FileTypeComponentBuilderExtensionAttribute
          • FileTypeCreatorAttribute
          • FileTypeCreatorWizardPage
          • FileTypeDefinitionCustomizationLevel
          • FileTypeDefinitionNotFoundException
          • FileTypeProfile
          • GeneratorId
          • IAbstractGenerator
          • IAbstractPreviewApplication
          • IAbstractPreviewControl
          • IAbstractPreviewController
          • IAbstractUpdatablePreview
          • IAdditionalGeneratorsInfo
          • IApplicationPreviewType
          • IBilingualDocumentGenerator
          • IBilingualProcessorContainer
          • IconDescriptor
          • IControlPreviewType
          • IDefaultFileTypeSettingsProvider
          • IDefaultQuickTagInfo
          • IFileExtractor
          • IFileGenerator
          • IFileTypeComponentBuilder
          • IFileTypeComponentBuilderAdapter
          • IFileTypeCreator
          • IFileTypeDefinition
          • IFileTypeDefinitionAware
          • IFileTypeDefinitionConfiguringControl
          • IFileTypeDefinitionFactory
          • IFileTypeInformation
          • IFileTypeManager
          • IFilterFramework1FilterDefinitionFile
          • IGeneratorInfo
          • IInteractivePreviewComponent
          • IInteractivePreviewComponentFactory
          • IMessageLocation
          • IMultiFileConverter
          • INavigablePreview
          • IPreviewSet
          • IPreviewSets
          • IPreviewSetsFactory
          • IPreviewType
          • IPreviewUpdatedViaRefresh
          • IPreviewUpdatedViaSegmentFile
          • IQuickTag
          • IQuickTagContent
          • IQuickTags
          • IQuickTagsFactory
          • ISettingsAware
          • ISingleFilePreviewApplication
          • ISingleFilePreviewControl
          • ISingleFilePreviewController
          • ISingleFileRefreshablePreview
          • ISourceAndTargetFilePreviewApplication
          • ISourceAndTargetFilePreviewControl
          • ISourceAndTargetFilePreviewController
          • ISourceAndTargetFileRefreshablePreview
          • ISubContentComponentBuilder
          • ISubContentExtractor
          • ISubContentGenerator
          • IVerifierCollection
          • MessageEventArgs
          • NativeGeneratorProvider
          • NoDefaultBilingualFileTypeException
          • NotBilingualFileTypeException
          • OneOrMoreFilesNotSupportedException
          • OutputPropertiesProvider
          • PreviewApplicationId
          • PreviewClosedEventArgs
          • PreviewControlHandler
          • PreviewControlId
          • PreviewSetId
          • PreviewSetKind
          • QuickTagDefaultId
          • SegmentReference
          • SegmentSelectedEventArgs
          • SubContentProcessorDoesNotExistException
          • TemplateComponentBuilderManager
          • UnknownFileTypeDefinitionException
        • Sdl.FileTypeSupport.Framework.IntegrationApi.Implementation
          • FileTypeCreator
        • Sdl.FileTypeSupport.Framework.IntegrationApi.QuickInserts
          • IQuickInsert
          • IQuickInsertDefinitionsManager
          • IQuickInsertsBuilder
          • QuickInsertConstants
          • QuickInsertIds
        • Sdl.FileTypeSupport.Framework.NativeApi
          • AbstractNativeExtractionContentProcessor
          • AbstractNativeExtractionGenerationContentProcessor
          • AbstractNativeFileParser
          • AbstractNativeFileParser.Stage
          • AbstractNativeFileTypeComponent
          • AbstractNativeFileWriter
          • AbstractNativeGenerationContentProcessor
          • ConflictingIdException
          • ContentRestriction
          • ContextPurpose
          • DependencyFileLinkOption
          • DependencyFileUsage
          • DetectionLevel
          • EncodingCategory
          • ErrorLevel
          • FileId
          • IAbstractBasicTagProperties
          • IAbstractInlineTagProperties
          • IAbstractNativeContentHandler
          • IAbstractTagProperties
          • IBasicMessageReporter
          • IBasicMessageReporterWithExtendedData
          • ICacheableSubContentParser
          • ICacheableSubContentWriter
          • IComment
          • ICommentProperties
          • IContextInfo
          • IContextProperties
          • ICustomInfoProperties
          • IdConflictResolution
          • IDependencyFileProperties
          • IEndTagProperties
          • IFilePostTweaker
          • IFilePreTweaker
          • IFileTweaker
          • ILockedContentProperties
          • IMetaDataContainer
          • INativeContentCycleAware
          • INativeContentStreamMessageReporter
          • INativeExtractionContentHandler
          • INativeExtractionContentProcessor
          • INativeExtractor
          • INativeFileParser
          • INativeFileSniffer
          • INativeFileTypeComponent
          • INativeFileVerifier
          • INativeFileWriter
          • INativeGenerationContentHandler
          • INativeGenerationContentProcessor
          • INativeGenerator
          • INativeLocationTracker
          • INativeOutputFileProperties
          • INativeOutputSettingsAware
          • INativeSubContentExtractor
          • INativeSubContentGenerator
          • INativeTextLocationMessageReporter
          • IOutputFileInfo
          • IParagraphUnitProperties
          • IParser
          • IPersistentFileConversionProperties
          • IPlaceholderTagProperties
          • IPropertiesFactory
          • ISegmentPairProperties
          • ISharedObjects
          • ISharedObjectsAware
          • IStartTagProperties
          • IStructureInfo
          • IStructureTagProperties
          • ISubContentAware
          • ISubContentParser
          • ISubContentPublisher
          • ISubContentWriter
          • ISubSegmentProperties
          • ISupportsPersistenceId
          • ISupportsUniqueId
          • ITextProperties
          • ITranslationOrigin
          • LocationMarkerId
          • LockTypeFlags
          • NativeTextLocation
          • ParagraphUnitId
          • ProcessSubContentEventArgs
          • ProgressEventArgs
          • ProgressReporter
          • RepetitionId
          • RevisionTypeNotSupportedException
          • SegmentationHint
          • SegmentId
          • Severity
          • SharedObjectPublishedEventArgs
          • SniffInfo
          • SourceCount
          • SourceCount.CountUnit
          • TagId
          • TextContextMatchLevel
        • Sdl.FileTypeSupport.Framework.PreviewControls
          • AbstractNativePreviewFileWriter
          • AbstractPreviewControl
          • DualBrowserControl
          • GenericExteralPreviewApplication
          • GenericInternalWebBrowserPreviewControl
          • GenericSideBySideWebBrowserPreviewControl
          • ITempFileProperties
          • MsOfficeExternalPreviewApplication
          • NavigableDualBrowserControl
          • SideBySideNavigableWebBrowserPreviewController
          • SideBySideRealtimeWebBrowserPreviewController
          • TempFileProperties
          • TempFileUtils
    • Project Automation
      • Overview
      • Threading Support
      • Working with projects
        • Overview
        • About projects
        • About Project Files
        • Project Configuration
        • About Project Translation Memories
        • About Tasks
        • About Packages
        • About Server-Based Projects
        • Code Examples
          • Required References and Namespaces
          • Creating a New Project
            • Setting the Project Information
            • Adding Files and Folders
            • Adding Translation Memories
            • Adding Termbases
            • Running Tasks on the Project Files
            • Saving Task Reports
            • Automatic Tasks and Task Settings
              • Analyze Files Settings
              • Project TM Creation Settings
              • Perfect Match
              • Pre-Translate Settings
              • Update Translation Memory Settings
              • Generating and Exporting Target Files
              • Translation Count
            • Translation Memory Settings
              • Translation Memory Search Settings
              • Setting TM Penalties
              • Auto-Substitution Settings
              • Translation Memory Field Update
              • Translation Memory Filter Settings
            • Working with Project Reports
            • Creating Projects Based on Previous Projects
            • Creating Projects Based on Templates
            • Creating a Merged File
            • Updating Project Files
            • Retrieving the Project Statistics
            • Deleting Projects
            • Completing Projects
            • Packages
              • Creating a Project Package
              • Creating a Return Package
              • Importing a Return Package
          • Working with a Project Server
            • Connecting a Project to a Project Server
            • Synchronizing With Project Server
            • Viewing and Deleting Published Projects
            • Checking Files In and Out
            • Downloading and Uploading Files
            • Putting it All Together
        • Developing a Sample Application
          • Introduction to the Sample Application
          • Setting up the Visual Studio Project
          • The Command-line Parameters
          • Configuring the Project Properties
          • Adding Files in the Folder to the Project
          • Adding the TM to the Project
          • Converting the Project Files
          • Analyzing the Files
          • Configuring the Analyze Task Settings
          • Generating the Task Report
          • Publishing to a Server
          • Deleting the Project
          • Putting it All Together
      • API Reference
        • Sdl.ProjectAutomation.Core
          • AnalysisBand
          • AnalysisStatistics
          • AutomaticTask
          • AutomaticTaskTemplateIds
          • BilingualFileMapping
          • CombinedConfirmationLevel
          • ConfirmationStatistics
          • CountData
          • DataTransferEventArgs
          • ExecutionMessage
          • ExtensionMethods
          • FileRole
          • FuzzyCountData
          • IProject
          • IProjectDeleteOperation
          • LocalFileState
          • LocalTermbase
          • ManualTask
          • MergedProjectFile
          • MergeState
          • MessageEventArgs
          • MessageLevel
          • PackageOperation
          • PackageStatus
          • PackageStatusEventArgs
          • ProgressEventArgs
          • ProjectAutomationException
          • ProjectFile
          • ProjectFileVersion
          • ProjectInfo
          • ProjectPackageCreation
          • ProjectPackageCreationOptions
          • ProjectPackageImport
          • ProjectReference
          • ProjectStatistics
          • ProjectStatus
          • ProjectTemplateInfo
          • ProjectTemplateReference
          • ProjectTranslationMemoryPackageOptions
          • ProjectType
          • PublicationStatus
          • ReportFormat
          • ReturnPackageCreation
          • ReturnPackageImport
          • ServerTermbase
          • TargetLanguageStatistics
          • Task
          • TaskFile
          • TaskFileInfo
          • TaskMessageEventArgs
          • TaskReport
          • TaskStatus
          • TaskStatusEventArgs
          • Termbase
          • TermbaseConfiguration
          • TermbaseLanguageIndex
          • TermbaseSearchOrder
          • TermRecognitionOptions
          • TranslationProviderCascadeEntry
          • TranslationProviderConfiguration
          • TranslationProviderReference
          • ValueStatus
          • WordCountStatistics
        • Sdl.ProjectAutomation.FileBased
          • AbstractContentProcessor
          • AbstractContentTask
          • FileBasedProject
          • LicensingException
          • ProjectCredentials
          • ProjectEvent
          • ProjectServer
          • PublishProjectEventArgs
          • PublishProjectResult
          • ServerProjectInfo
          • TaskSequence
          • TaskSequences
        • Sdl.ProjectAutomation.FileBased.Events
          • ProjectCreatedEvent
          • ProjectOpenedEvent
          • ProjectPublishedEvent
        • Sdl.ProjectAutomation.FileBased.Reports.Models
          • Report
          • ReportDefinition
        • Sdl.ProjectAutomation.FileBased.Reports.Operations
          • ProjectReportsOperations
        • Sdl.ProjectAutomation.FileBased.ServerOperations
          • IServerBasedProjectOperations
          • ServerBasedProjectOperations
        • Sdl.ProjectAutomation.Settings
          • AbstractTaskSettings
          • AnalysisTaskSettings
          • AppendToUnitType
          • ExportFilesSettings
          • ExportFileVersion
          • ExportForReviewTaskSettings
          • ExternalReviewMappingItem
          • ImportFromReviewTaskSettings
          • MeasurementsFormattingMode
          • NoTranslationMemoryMatchFoundAction
          • PerfectMatchTaskSettings
          • ProjectSettings
          • ProjectTranslationMemoryTaskSettings
          • PseudoTranslateSettings
          • ReturningPackageSettings
          • SourceTrackChangesLookupMode
          • TmImportOption
          • TranslateTaskSettings
          • TranslationCountSettings
          • TranslationMemorySettings
          • TranslationMemoryUpdateTaskSettings
          • TranslationUpdateMode
          • WordCountSettings
        • Sdl.ProjectAutomation.Settings.Events
          • TranslationProviderStatusChanged
    • Translation Memory
      • Introduction
      • General
        • What you can do with this SDK
        • How Translators Work with Translation Memories
          • Creating Translation Memories
          • Configuring Translation Memories
          • Accessing Translation Memories
          • Performing Translation Memory Lookups
          • Updating Translation Memories
          • Maintaining Translation Memories
      • Working with Translation Memories
        • General
          • Introduction
          • Working with File-based Translation Memories
          • Working with Field Definitions
          • Working with Language Resources
          • Importing Content into a Translation Memory
          • Exporting Content from a Translation Memory
          • Performing Translation Memory Lookups
          • Working with Filters
        • Code Examples
          • Required References and Namespaces
          • Setting up File Translation Memories
            • Creating a File-based Translation Memory
            • Setting and Retrieving TM Properties
            • Adding TM Fields
            • Adding Language Resources
            • Setting Translation Memory Access Rights
          • Importing a TMX File
          • Exporting to a TMX File
          • Doing Translation Memory Lookups
          • Updating a Translation Memory
          • Reading Translation Unit System Information
          • Tuning and Maintaining a Translation Memory
          • Looping through Translation Memories
      • Working with TM Server
        • General
          • Introduction
          • Connecting to TM Server
          • Working with Database Servers and Containers
          • Working with Server-based Translation Memories
          • Working with Field Templates
          • Working with Language Resource Templates
          • Performing a Scheduled Import or Export
        • Code Examples
          • Introduction
          • Preparing your Project for Server Access
          • Connecting to a TM server
          • Retrieving Licensing Information
          • Retrieving Database Servers
          • Retrieving TM Containers
          • Creating a Container Database
          • Creating a Server Translation Memory
          • Scheduled TMX Imports
          • Scheduled TMX Exports
          • TM Fields Templates
          • Language Resource Templates
      • Translation Provider Plug-ins
        • Introduction
        • Creating the Translation Provider
        • Creating the Translation Provider Factory
        • Creating the Translation Provider UI Extension
      • Sample Projects
        • TM Batch Export Tool
          • Introduction to the TM Batch Export Tool
          • Setting up the Project
          • Looping through the Folder(s)
          • Exporting to TMX
        • TM Batch Import Tool
          • Introduction to the TM Batch Import Tool
          • Setting up the Project
          • Looping through the Folder(s)
          • Importing into the Master Translation Memories
          • Creating the Master Translation Memories
          • Creating a Log File
        • TM Lookup Tool
          • Introduction to the TM Lookup Tool
          • Setting up the Project
          • Adding the Main GUI
          • Adding the Server TM Selection Form
          • Adding the Search Settings Form
          • Adding the Connector Class
          • Implementing the Search Functionality
        • Creating a Translation Service Provider Plug-in
          • About the Sample Translation Service Provider Plug-in
          • Setting up the Project
          • The Resources File
          • The Plug-in Manifest
          • Building the Plug-in
          • Instantiating the Plug-in
          • Implementing the Plug-in User Interface
          • Controlling the Plug-in User Interface
          • Storing and Retrieving the Plug-in Settings
          • Enabling the Required Translation Provider Features
          • Verifying the Language Pair Support
          • Implementing the Search Logic
          • Implementing the Element Visitor
      • API Reference
        • Sdl.Core.FineGrainedAlignment
          • AlignableContentPairId
          • AlignableCorpusId
          • AlignedPhrase
          • AlignerDefinition
          • AlignmentEvidence
          • AlignResult
          • BilingualChiSquareComputer3
          • BilingualPhraseComputer3
          • BilingualPhraseComputer3.Settings
          • ChiSquaredAligner
          • ChiSquaredAligner.CodedTokenIndexConverter
          • ChiSquaredAligner.NullModelException
          • ChiSquaredLiftAligner
          • ChiSquaredTranslationModel
          • ChiSquaredTranslationModelBuilder
          • ChiSquaredTranslationModelId
          • ChiSquaredTranslationModelStoreReadOnly
          • CooccurrenceCounter2
          • FGAInitializer
          • IAlignableContentPair
          • IAlignableCorpus
          • IAlignableCorpusManager
          • IAlignerBroker
          • IAlignerService
          • IChiSquaredTranslationModelStore
          • IChiSquaredTranslationModelStoreReadOnly
          • IFineGrainedAligner
          • ITranslationModelDataService
          • ITranslationModelManagementService
          • ITranslationModelManager
          • LiftAligner
          • LiftAligner.SpanHypothesis
          • LiftAligner.SpanHypothesisArray
          • ModelBasedAlignerDefinition
          • ModelNotFoundException
          • OnlineAlignerDefinition
          • SimpleAlignerBroker
          • SimpleAlignmentEvidence
          • TokenWithCount
          • TrainedModelAligner
          • TrainedModelAligner.CodedTokenIndexConverter
          • TrainedModelBuildResults
          • TrainedTranslationModel
          • TrainedTranslationModelBuilder
          • TrainedTranslationModelId
          • TranslationModel
          • TranslationModelCancelException
          • TranslationModelDetails
          • TranslationModelFitness
          • TranslationModelId
          • TranslationModelMatrixEntry
          • TranslationModelProgressEventArgs
          • TranslationModelProgressStage
          • TranslationModelTypes
          • TranslationModelVocabEntry
          • VocabularyFile3
          • WordAlignmentComputer3
        • Sdl.Core.LanguageProcessing.Tokenization
          • SeparatorCombination
        • Sdl.Core.TM.ImportExport
          • BatchExportedEventArgs
          • BatchImportedEventArgs
          • Exporter
          • IExportOrigin
          • IImportDestination
          • Importer
          • Importer.ImportResultsMap
          • ImportExportResponse
          • LanguageMismatchException
          • TmApiImportExport
        • Sdl.LanguagePlatform.Core
          • CharacterProperties
          • CharacterProperties.Case
          • CharacterSet
          • CultureInfoExtensions
          • CultureInfoExtensions.LanguageGroupID
          • CultureInfoExtensions.LanguageGroupInstallationStatus
          • CultureString
          • DateTimeUtilities
          • ErrorCode
          • FaultDescription
          • FaultStatus
          • ISegmentElementVisitor
          • LanguageMetadata
          • LanguagePair
          • LanguagePlatformException
          • Pair<T>
          • SearchOption
          • Segment
          • Segment.DeleteTagsAction
          • Segment.ValidationMode
          • SegmentEditor
          • SegmentElement
          • SegmentElement.Similarity
          • SegmentPosition
          • SegmentRange
          • StringUtilities
          • StringUtilities.Casing
          • Tag
          • TagType
          • Text
          • UnicodeBlock
          • Wordlist
        • Sdl.LanguagePlatform.Core.EditDistance
          • EditDistance
          • EditDistanceItem
          • EditDistanceResolution
          • EditOperation
        • Sdl.LanguagePlatform.Core.Resources
          • IResourceDataAccessor
          • LanguageResourceType
          • ResourceStatus
        • Sdl.LanguagePlatform.Core.Segmentation
          • Context
          • ContextType
          • LocalizedString
          • RuleOrigin
          • RuleType
          • SegmentationContext
          • SegmentationRule
          • SegmentationRules
        • Sdl.LanguagePlatform.Core.Serialization
          • LinguaDeserializer
        • Sdl.LanguagePlatform.Core.Tokenization
          • AutoLocalizationSettings
          • BuiltinRecognizers
          • CurrencyFormat
          • CurrencySymbolPosition
          • CustomUnitDefinition
          • DateTimePatternType
          • DateTimeToken
          • GenericPlaceableToken
          • ILocalizableToken
          • LocalizationParametersSource
          • Match
          • MeasureToken
          • NumberToken
          • NumericSeparator
          • PhysicalUnit
          • PhysicalUnitDescription
          • PhysicalUnitDescriptions
          • PrioritizedToken
          • Sign
          • SimpleToken
          • TagToken
          • Token
          • TokenBundle
          • TokenizationContext
          • TokenizerFlags
          • TokenType
          • Unit
          • UnitSeparationMode
          • UnitSystem
          • UnitType
        • Sdl.LanguagePlatform.IO
          • MultiFileTextReader
        • Sdl.LanguagePlatform.IO.Streams
          • CommentEvent
          • EndOfInputEvent
          • Event
          • IEventReader
          • IEventReceiver
          • StartOfInputEvent
          • TUEvent
          • TUStreamContext
        • Sdl.LanguagePlatform.IO.TMX
          • body
          • bpt
          • ept
          • header
          • headerSegtype
          • hi
          • it
          • itPos
          • map
          • note
          • ph
          • prop
          • seg
          • sub
          • tmx
          • TMXReader
          • TMXReaderSettings
          • TMXStartOfInputEvent
          • TMXTools
          • TMXWriter
          • TMXWriterSettings
          • tu
          • tuSegtype
          • tuv
          • ude
          • ut
        • Sdl.LanguagePlatform.TranslationMemory
          • Action
          • AdaptiveMachineTranslationLookupMode
          • AppliedPenalty
          • AtomicExpression
          • AtomicExpression.Operator
          • ComposedExpression
          • ComposedExpression.Operator
          • DateTimeFieldValue
          • DocumentDetail
          • DuplicateIterator
          • DuplicateIterator.DuplicateIteratorPosition
          • ExportSettings
          • ExportStatistics
          • FGASupport
          • Field
          • FieldDefinitions
          • FieldIdentifier
          • FieldType
          • FieldValue
          • FieldValues
          • FieldValueType
          • Filter
          • FilterExpression
          • FilterExpressionParser
          • FuzzyIndexes
          • FuzzyIndexTuningSettings
          • IField
          • IFieldDefinitions
          • IFieldValueComparer<T>
          • ILogLogger
          • ImportResult
          • ImportResults
          • ImportSettings
          • ImportSettings.FieldUpdateMode
          • ImportSettings.ImportTUProcessingMode
          • ImportSettings.NewFieldsOption
          • ImportSettings.TUUpdateMode
          • ImportStatistics
          • ImportStatus
          • IntFieldValue
          • ITypedKeyValueContainer
          • LogManager
          • MachineTranslationLookupMode
          • MultiplePicklistFieldValue
          • MultipleStringFieldValue
          • NLogLogger
          • Penalty
          • PenaltyType
          • PersistentObject
          • PersistentObjectToken
          • PicklistField
          • PicklistItem
          • PicklistItems
          • Placeable
          • PlaceableAssociation
          • PlaceableComputer
          • PlaceableType
          • RegularIterator
          • ScoringResult
          • SearchMode
          • SearchResult
          • SearchResultFieldValueAccessor
          • SearchResultFieldValueComparer
          • SearchResults
          • SearchResults.SearchResultComparer
          • SearchResultsMerged
          • SearchSettings
          • SegmentAndSubsegmentSearchResults
          • SegmentAndSubsegmentSearchResultsMerged
          • SegmentSerializer
          • SinglePicklistFieldValue
          • SingleStringFieldValue
          • SortCriterium
          • SortDirection
          • SortDisambiguator
          • SortDisambiguator.Disambiguator
          • Sorter<T>
          • SortSpecification
          • SubsegmentMatchType
          • SubsegmentSearchCondition
          • SubsegmentSearchResult
          • SubsegmentSearchResults
          • SubsegmentSearchResultsCollection
          • SubsegmentSearchSettings
          • SystemFields
          • SystemFieldsKeys
          • SystemFieldsParameters
          • TextContextMatch
          • TextContextMatchType
          • TranslationMemoryIterator
          • TranslationMemoryProgress
          • TranslationUnit
          • TranslationUnitFormat
          • TranslationUnitOrigin
          • TuContext
          • TuContexts
          • TuIdContexts
          • Utilities
          • WordCountFlags
          • WordCounts
          • WordCountsOptions
        • Sdl.LanguagePlatform.TranslationMemory.EditScripts
          • Continuation
          • EditAction
          • EditActionChangeFieldValue
          • EditActionDeleteAllFieldValues
          • EditActionDeleteFieldValue
          • EditActionDeleteTags
          • EditActionRenameField
          • EditActionSearchReplace
          • EditScript
          • EditScriptApplier
          • EditUpdateMode
          • Mode
          • PatternType
        • Sdl.LanguagePlatform.TranslationMemoryApi
          • AbstractLocalTranslationMemory
          • AbstractMachineTranslationProvider
          • AbstractMachineTranslationProviderLanguageDirection
          • AlignmentTMBilingualProcessor
          • BatchExportedEventArgs
          • BatchImportedEventArgs
          • Cascade<T>
          • CascadeEntry
          • CascadeException
          • CascadeMessage
          • CascadeMessageCode
          • ContainerProperties
          • DatabaseServer
          • DatabaseServerAuthenticationType
          • DatabaseServerPermissions
          • DatabaseServerProperties
          • DatabaseServerType
          • DefaultLanguageResourceProvider
          • FieldDefinition
          • FieldDefinitionCollection
          • FieldsTemplateProperties
          • FileBasedLanguageResourcesTemplate
          • FileBasedTranslationMemory
          • FileBasedTranslationMemoryLanguageDirection
          • FileTransferEventArgs
          • GenericCredentials
          • IAdvancedContextTranslationMemory
          • IAdvancedContextTranslationMemoryLanguageDirection
          • IAlignableTranslationMemory
          • IFieldsTemplate
          • IFileBasedTranslationMemory
          • ILanguageResourceEntity
          • ILanguageResourcesTemplate
          • ILocalTranslationMemory
          • ImportExportOperationBase
          • ImportExportResponse
          • InMemoryTranslationMemory
          • IPermissionCheck
          • IReindexableTranslationMemory
          • ISubsegmentTranslationMemoryLanguageDirection
          • ISupportPlaceables
          • ITranslationMemory
          • ITranslationMemory2015
          • ITranslationMemoryLanguageDirection
          • ITranslationProvider
          • ITranslationProviderCredentialStore
          • ITranslationProviderFactory
          • ITranslationProviderLanguageDirection
          • ITranslationProviderLanguageDirectionWithDelete
          • ITranslationProviderSummaryFactory
          • ITranslationProviderWinFormsUI
          • LanguageDirectionProperties
          • LanguageResourceBundle
          • LanguageResourceBundleCollection
          • LanguageResourceEntity
          • LanguageResourcesTemplateProperties
          • LicensingStatusInformation
          • NullPropertyException
          • ObjectDeletedException
          • ObjectDoesNotExistException
          • ObjectNotSavedException
          • PagedTranslationMemories
          • PicklistItemDefinition
          • PicklistItemDefinitionCollection
          • PropertyValueValidator
          • ProviderStatusInfo
          • RemoteTranslationMemory
          • ScheduledFieldApplyOperation
          • ScheduledLanguageResourcesApplyOperation
          • ScheduledOperation
          • ScheduledOperationStatus
          • ScheduledRecomputeStatisticsOperation
          • ScheduledReindexOperation
          • ScheduledServerTranslationMemoryExport
          • ScheduledServerTranslationMemoryImport
          • ServerBasedFieldsTemplate
          • ServerBasedLanguageResourcesTemplate
          • ServerBasedTranslationMemory
          • ServerBasedTranslationMemoryLanguageDirection
          • ServerBasedTranslationMemoryLanguageDirectionCollection
          • ServerImportStatus
          • StringResources
          • SystemFieldDefinitions
          • TranslationMemoryContainer
          • TranslationMemoryContainerPermissions
          • TranslationMemoryExporter
          • TranslationMemoryFieldsPermissions
          • TranslationMemoryFileAccessMode
          • TranslationMemoryImporter
          • TranslationMemoryLanguageResourcePermissions
          • TranslationMemoryPermissions
          • TranslationMemoryProperties
          • TranslationMemoryQuery
          • TranslationMemoryQueryFilters
          • TranslationMemorySearchResultConverters
          • TranslationMemoryUpgradeUtil
          • TranslationMethod
          • TranslationProviderAuthenticationException
          • TranslationProviderCascadePermissions
          • TranslationProviderCredential
          • TranslationProviderCredentialStore
          • TranslationProviderDisplayInfo
          • TranslationProviderFactoryAttribute
          • TranslationProviderInfo
          • TranslationProviderManager
          • TranslationProviderServer
          • TranslationProviderUriBuilder
          • TranslationProviderWinFormsUiAttribute
          • TranslationSequenceProperties
          • TranslationUnitPermissions
        • Sdl.LanguagePlatform.TranslationMemoryApi.Helpers
          • FileBasedTMSettingsCloner
        • Sdl.LanguagePlatform.TranslationMemoryApi.Upgrade
          • AbstractTranslationMemoryCreator
          • BaseTranslationMemoryMigrationManager
          • IBaseTranslationMemoryMigrationManager
          • IExportableLegacyTranslationMemory
          • IFieldIdentifierMappings
          • IFieldIdentifierMappingsCollection
          • IFileBasedTranslationMemoryCreator
          • IInputLanguageDirectionData
          • IInputLanguageDirectionDataCollection
          • IInputTranslationMemory
          • IInputTranslationMemoryCollection
          • IItemCollection<T>
          • ILegacyLanguageDirectionData
          • ILegacyLanguageResources
          • ILegacyTranslationMemory
          • ILegacyTranslationMemorySetup
          • IMigrationProject
          • InputLanguagePair
          • InputLanguagePairCollection
          • IOutputTranslationMemory
          • IOutputTranslationMemoryCollection
          • ItemCollection<T>
          • ItemCollectionAddedEventArgs<T>
          • ItemCollectionEventArgs<T>
          • ItemCollectionRemovedEventArgs<T>
          • ITmxLegacyTranslationMemory
          • ITranslationMemoryCreator
          • ITranslationMemoryExporter
          • ITranslationMemorySetupOptions
          • LegacyLanguage
          • LegacyLanguagePair
          • LegacyTranslationMemorySetup
          • ProgressEventArgs
          • TmxFileStatus
    • Integration
      • Overview
      • What you can do with the Integration API
      • User Interface integration
        • Introduction
        • Creating views
        • Creating viewparts
        • Creating ribbon groups
        • Creating actions
        • Samples
          • Integrating views
          • Integrating viewparts
          • Integrating ribbon groups
          • Integrating actions
          • Reference Sample
          • Content Connector
          • Project Creator
          • Wikipedia Search
      • Trados Studio Automation
        • Introduction
        • Create a Trados Studio application initializer
        • Create a Trados Studio AutoSuggest provider
        • Create command line processors
        • Trados Studio controllers
          • Introduction
          • Projects controller
          • Files controller
          • Editor controller
          • Integration Samples
            • Trados Studio application initializers
            • Trados Studio AutoSuggest provider
            • Trados Studio command line processor
            • Using Trados Studio ProjectsController
            • Using Trados Studio FilesController
            • Using Trados Studio EditorController
      • Bilingual API
        • Overview
        • Traversing document entities
      • Display Filter
        • Introduction
        • Developing a Sample Custom Display Filter
          • What the filter should do
          • Setting up the Visual Studio Project
          • Implementing filtering capabilities to your Display Filter
          • Creating the UI Editor Control for your Display Filter
      • API Reference
        • Sdl.Common.Licensing.AppSupport
          • IProductLicense
          • LicenseStatus
          • LicenseSummaryDelegate
          • Product
          • ProductLicenseManager
        • Sdl.Desktop.IntegrationApi
          • AbstractAction
          • AbstractApplication
          • AbstractRibbonGroup
          • AbstractViewController
          • AbstractViewControllerAction<TController>
          • AbstractViewPartController
          • ActionExecutionCancelEventArgs
          • ActionExecutionEventArgs
          • ActivationChangedEventArgs
          • ApplicationHost<T>
          • DefaultSettingsPage<TControl, TSettings>
          • IApplicationInitializer
          • ISettingsAware<TSettings>
          • IViewContext
          • SettingsBinder
          • VisibilityChangedEventArgs
        • Sdl.Desktop.IntegrationApi.DefaultLocations
          • StudioDefaultContextMenus
          • StudioDefaultRibbonGroups
          • StudioDefaultRibbonTabs
          • StudioDefaultRibbonTabs.AddinsRibbonTabLocation
          • StudioDefaultRibbonTabs.HelpRibbonTabLocation
          • StudioDefaultRibbonTabs.ViewRibbonTabLocation
          • StudioDefaultViews
        • Sdl.Desktop.IntegrationApi.Extensions
          • AbstractCommandBarItemAttribute
          • AbstractLayoutAttribute
          • AbstractLayoutConfiguration
          • ActionAttribute
          • ActionLayoutAttribute
          • ApplicationInitializerAttribute
          • DisplayType
          • DockType
          • GroupStyle
          • ILocationAware
          • RibbonGroupAttribute
          • RibbonGroupLayoutAttribute
          • ShortcutAttribute
          • ViewAttribute
          • ViewPartAttribute
          • ViewPartLayoutAttribute
        • Sdl.Desktop.IntegrationApi.Extensions.CommandLine
          • ExternalCommandLineArgument
          • ExternalCommandLineArgumentDefinition
          • ExternalCommandLineArguments
          • ExternalCommandLineProcessorAttribute
          • IExternalCommandLineProcessor
          • IExternalWindowAwareCommandLineProcessor
        • Sdl.Desktop.IntegrationApi.Extensions.Internal
          • AbstractController
          • AbstractLocation
          • ActionProperties
          • ActionPropertyChangedEventArgs
          • ActionStyle
          • BindActionAttribute
          • BindControllerAttribute
          • IAction
          • IBindedController
          • PluginTargetCommandBarSiteType
        • Sdl.Desktop.IntegrationApi.Interfaces
          • IPluginLog
          • IPluginLoggerFactory
          • IStudioEventAggregator
          • IStudioGroupNotification
          • IStudioNotification
          • IStudioNotificationCommand
          • IUIControl
          • IUISettingsControl
        • Sdl.Desktop.IntegrationApi.Internal
          • AbstractBindedAction
          • AbstractBindedController
          • DefaultExplorerBar
        • Sdl.Desktop.IntegrationApi.Jobs
          • ExecuteExternalJobEvent
          • IExternalJob
          • IExternalJobWithProgress
          • JobFinishedArgs
          • JobProgressArgs
        • Sdl.Desktop.IntegrationApi.Notifications.Events
          • AddStudioGroupNotificationEvent
          • AddStudioNotificationOrCreateGroupEvent
          • AddStudioNotificationToGroupEvent
          • RemoveStudioGroupNotificationEvent
          • RemoveStudioNotificationFromGroupEvent
          • ShowStudioNotificationsViewEvent
          • StudioWindowCreatedNotificationEvent
        • Sdl.Desktop.Platform.Controls.Behaviours
          • ComboboxPlaceholderBehavior
          • DataGridItemBehavior
          • DragDropBehaviour
          • EventBehaviourFactory
          • FocusOnClickBehaviour
          • HighlightOnValueChanged
          • KeyboardFocusBehaviour
          • MouseDownBehaviour
          • NumberOnlyBehaviour
          • PlaceholderAdorner
          • ShowSystemMenuBehavior
          • TextBlockAutoToolTipBehavior
          • TextBoxPlaceholderBehavior
          • TimedAutoHideBehaviour
          • TreeViewSelectedItemChangedBehaviour
          • WebBrowserBindableSourceBehavior
          • WebBrowserContentSource
          • WindowDragBehavior
          • WindowLoadedBehaviour
        • Sdl.Desktop.Platform.Controls.Browser
          • EmbeddedBrowserCookieManager
          • ICookieManager
          • INativeBrowserApi
          • NativeBrowserApi
          • WebBrowserExtensions
        • Sdl.Desktop.Platform.Controls.Controls
          • BindablePasswordBox
          • ButtonsAlignment
          • ComboBoxTreeViewWithNewItem
          • ComboBoxWithNewItem
          • CustomProgressRing
          • DataGridWithMultipleSelection
          • NumericUpDown
          • NumericUpDownChangedRoutedEventArgs
          • NumericUpDownChangedRoutedEventHandler
          • SortWiseDataGrid
          • UniformWrapPanel
          • WindowsControlUtils
        • Sdl.Desktop.Platform.Controls.Controls.CustomTreeViewComboBox
          • ComboBoxTreeView
          • ExtendedTreeView
          • ExtendedTreeViewItem
          • ITreeViewItemModel
        • Sdl.Desktop.Platform.Controls.Controls.WatermarkTextBox
          • TextBoxWatermarkHelper
        • Sdl.Desktop.Platform.Controls.Converters
          • BooleanConverter<T>
          • BooleanOrConverter
          • BooleanToAutoRowHeightConverter
          • BooleanToFontConverter
          • BooleanToGridRowHeightConverter
          • BooleanToRatioRowHeightConverter
          • BooleanToVisibilityConverter
          • BulletedStringConverter
          • EnumMatchToBooleanConverter
          • EnumToBooleanConverter
          • ImagePathToImageSourceConverter
          • InverseBooleanConverter
          • InverseBooleanToVisibilityConverter
          • InverseNullToVisibilityConverter
          • NullableToVisibilityConverter
          • ObservableCollectionCountToVisibilityConverter
          • StringIsNullOrEmptyToBool
          • StringIsNullOrEmptyToVisibility
          • VisibilityToBooleanConverter
          • WpfFormattedText
          • WpfFormattedText.TextPart
        • Sdl.Desktop.Platform.Controls.Errors
          • Severity
          • ValidationResultWithSeverity
        • Sdl.DesktopEditor.BasicControls
          • BasicSegmentEditControl
        • Sdl.DesktopEditor.EditorApi
          • ActiveRowChangedEventArgs
          • AfterEditControlsCreatedEventArgs
          • AfterInitialUpdateEventArgs
          • ChangeNotAllowedException
          • ContentHeightChangedEventArgs
          • ContentNodeIterator
          • ContentRange
          • ContentRange.ReductionAllowedTest
          • CustomColumnContentChangedEventArgs
          • CustomColumnLocation
          • DocumentContentChangedEventArgs
          • DocumentPropertiesChangedEventArgs
          • EditControlEventArgs
          • EditException
          • EditOperationAbortedEventArgs
          • EditOperationCompletingEventArgs
          • FilePropertiesChangedEventArgs
          • FindType
          • FocusedControlChangedEventArgs
          • FocusedControlChangedEventArgs.FocusChangeType
          • FormattingBuilderVisitor
          • FrameworkDocumentContentChangedEventArgs
          • FrameworkNodeWrapperVisitor
          • IAbstractContainerNode
          • IAbstractContentNode
          • IAbstractEditOperation
          • IAbstractFrameworkDocument
          • IAbstractFrameworkEditControl
          • IAbstractNode
          • IBilingualDocument
          • IBookmarkNode
          • IChangeableBookmarkNode
          • IChangeableCommentContainerNode
          • IChangeableContainerNode
          • IChangeableDocumentContainerNode
          • IChangeableFileContainerNode
          • IChangeableLocationMarkerNode
          • IChangeableLockedContentContainerNode
          • IChangeableMarkerContainerNode
          • IChangeableNode
          • IChangeableParagraphUnitContainerNode
          • IChangeablePlaceholderTagNode
          • IChangeableRevisionMarkerContainerNode
          • IChangeableSegmentContainerNode
          • IChangeableStartEndNode
          • IChangeableTagPairContainerNode
          • IChangeableTextNode
          • IChangeGhostStatusOperation
          • IChangeTextOperation
          • ICollectiveUndoCommand
          • ICommentContainerNode
          • IContentSelection
          • IControl
          • ICustomColumn
          • IDeleteNodeOperation
          • IDocument
          • IDocumentContainerNode
          • IDocumentFragment
          • IEditControl
          • IEditOperationVisitor
          • IFileContainerNode
          • IFind
          • IFindProperties
          • IFrameworkDocument
          • IFrameworkEditControl
          • IInsertNodeOperation
          • IInteractiveCustomColumn
          • ILayoutSynchronizer
          • ILocationMarkerNode
          • ILockedContentContainerNode
          • IMarkupDataNode
          • INode
          • INodeFactory
          • INodeVisitor
          • InteractiveEventFlags
          • InvalidEditOperationException
          • IOtherMarkerContainerNode
          • IParagraphUnitContainerNode
          • IPlaceholderNode
          • IPlaceholderTagNode
          • IRevisionMarkerContainerNode
          • IRowInfo
          • ISegmentContainerNode
          • ISegmentDocument
          • ISegmentEditControl
          • ISideBySideEditor
          • IStartEndNode
          • ISynchronizableCell
          • ISynchronizableLayout
          • ITagPainter
          • ITagPaintingProperties
          • ITagPairContainerNode
          • ITextIterator
          • ITextMark
          • ITextMarkPainter
          • ITextNode
          • ITreeNode<NodeType, ContainerType>
          • IUndoBuffer
          • IUndoCommand
          • MarkupDataNodeFinder
          • MarkupDisplayMode
          • MouseEnteringNodeEventArgs
          • MouseLeavingNodeEventArgs
          • MouseOverTextMarksChangedEventArgs
          • Move
          • NodeIterator
          • OverwriteModeChangedEventArgs
          • ParagraphUnitPropertiesChangedEventArgs
          • PersistentScrollInfoChangedEventArgs
          • Position
          • RowChangedEventArgs
          • RowsChangedEventArgs
          • SegmentPropertiesChangedEventArgs
          • SelectionChangedEventArgs
          • Shading
          • SourceEditingModeEndedEventArgs
          • SourceEditingModeStartedEventArgs
          • TagDisplayMode
          • TextMarkLayer
          • UndoBufferContentChangedEventArgs
          • VScrollEventArgs
        • Sdl.DesktopEditor.EditorApi.Extensions
          • EditorApiExtensions
        • Sdl.DesktopEditor.EditorApi.Implementation
          • AbstractCollectiveUndoCommand
          • AbstractCustomColumn
          • AbstractMarkPainter
          • AbstractMarkPainter.MarkLocation
          • AbstractOperationConsolidator
          • AbstractRowSelectionColumn
          • AbstractTextIterator
          • BackgroundColourPainter
          • BracketPainter
          • ChangeGhostStatusConsolidator
          • ChangeGhostStatusOperation
          • ChangeTextConsolidator
          • ChangeTextOperation
          • CopyFragmentVisitor
          • DeleteNodeOperation
          • DeleteOperationConsolidator
          • DocumentStructureInfoColumn
          • EditControlDisplaySettings
          • EditControlFontSizeSettings
          • EditOperationConsolidatorVisitor
          • HorizontalLinePainter
          • InsertNodeOperation
          • InsertOperationConsolidator
          • IRowEventSource
          • MarkupDataNodeIterator
          • PlainTextExtractionVisitor
          • PlainTextMapper
          • ProjectEditorSettings
          • RemoveFormattingVisitor
          • RowNumberColumn
          • RowSizeAccessor
          • SegmentIdColumn
          • SquigglyLinePainter
          • SquigglyLinePainter.SquiggleShape
          • TagPaintingProperties
          • TextMark
          • TextOnlyFragmentVisitor
        • Sdl.LanguageCloud.IdentityApi
          • ILanguageCloudIdentityApi
          • LanguageCloudCredentialInfo
          • LanguageCloudIdentityApi
        • Sdl.TellMe.ProviderApi
          • AbstractTellMeAction
          • ISearchDataProvider
          • ISearchSpecification
          • ITellMeAction
          • ITellMeControl
          • ITellMePluginLoader
          • ITellMeProvider
          • TellMeProviderAttribute
          • TellMeSearchProviderAttribute
        • Sdl.TranslationStudioAutomation.IntegrationApi
          • AbstractContentSelection
          • AutomationSegmentPairExtension
          • CancelDocumentEventArgs
          • ContentSelectionInfo
          • CurrentProjectCancelEventArgs
          • Document
          • DocumentContentEventArgs
          • DocumentErrorEventArgs
          • DocumentEventArgs
          • DocumentFilterEventArgs
          • DocumentSelection
          • EditingMode
          • EditorController
          • FilesController
          • FocusedDocumentContent
          • IStudioDocument
          • ProjectsController
          • ReportsViewController
          • SdlTradosStudio
          • SourceSelection
          • TargetSelection
          • TranslationMemoriesViewController
          • WelcomeViewController
        • Sdl.TranslationStudioAutomation.IntegrationApi.Actions
          • AddProjectAction
          • CloseAllDocumentsAction
          • CloseDocumentAction
          • CloseProjectAction
          • CreateReturnPackageFromProjectAction
          • LanguageCloudAction
          • NewProjectAction
          • OpenDocumentAction
          • OpenPackageAction
          • OpenProjectAction
          • SaveAllDocumentsAction
          • SaveDocumentAction
          • SaveDocumentAsAction
          • SaveDocumentSourceAsAction
          • SaveDocumentTargetAsAction
        • Sdl.TranslationStudioAutomation.IntegrationApi.AutoSuggest
          • AbstractAutoSuggestProvider
          • AbstractAutoSuggestResult
          • AbstractEditingContext
          • AutoSuggestSettings
          • AutoSuggestTextResult
        • Sdl.TranslationStudioAutomation.IntegrationApi.DisplayFilters
          • DisplayFilterAdapter
          • DisplayFilterRowInfo
          • IDisplayFilter
          • IDisplayFilterRowInfo
        • Sdl.TranslationStudioAutomation.IntegrationApi.Editor.ConcordanceSearch
          • ConcordanceSearchController
          • ConcordanceSearchResults
          • ConcordanceSearchType
          • IConcordanceSearchController
        • Sdl.TranslationStudioAutomation.IntegrationApi.Editor.TranslationResults
          • ITranslationResultsController
          • TranslationResults
          • TranslationResultsController
        • Sdl.TranslationStudioAutomation.IntegrationApi.Events
          • AddFileDescriptorExceptionNotificationEvent
          • ChangeSourceContentSettingsEvent
          • CommentsChangedEvent
          • CommentsChangedEvent.CommentEventType
          • CommentsChangedEvent.CommentScope
          • CreateReturnPackageEvent
          • OpenNewProjectWizardEvent
          • OpenProjectForSelectedLanguageEvent
          • OpenProjectPackageEvent
          • ProjectWizardData
          • RefreshProjectsEvent
          • SegmentsMergedEvent
          • SegmentSplitEvent
        • Sdl.TranslationStudioAutomation.IntegrationApi.Extensions
          • AutoSuggestProviderAttribute
          • ISegmentExtensions
        • Sdl.TranslationStudioAutomation.IntegrationApi.Internal
          • SdlTradosStudioApplication
        • Sdl.TranslationStudioAutomation.IntegrationApi.Presentation
          • EditorReviewLayoutConfiguration
          • EditorSignoffLayoutConfiguration
        • Sdl.TranslationStudioAutomation.IntegrationApi.Presentation.DefaultLocations
          • TranslationStudioDefaultContextMenus
          • TranslationStudioDefaultContextMenus.EditorDocumentContextMenuLocation
          • TranslationStudioDefaultContextMenus.EditorDocumentSpellcheckContextMenuLocation
          • TranslationStudioDefaultContextMenus.FilesContextMenuLocation
          • TranslationStudioDefaultContextMenus.ProjectsContextMenuLocation
          • TranslationStudioDefaultRibbonGroups
          • TranslationStudioDefaultRibbonTabs
          • TranslationStudioDefaultRibbonTabs.EditorAdvancedRibbonTabLocation
          • TranslationStudioDefaultRibbonTabs.EditorReviewRibbonTabLocation
          • TranslationStudioDefaultRibbonTabs.HomeRibbonTabLocation
          • TranslationStudioDefaultViews
          • TranslationStudioDefaultViews.TradosStudioViewsLocation
        • Sdl.TranslationStudioAutomation.Licensing
          • LicenseChecker
          • StudioEdition
          • StudioFeature
        • Sdl.Versioning
          • IStudioVersionService
          • StudioVersion
          • StudioVersionService
          • VersionedPaths
          • Versions
    • Verification
      • Overview
      • How to Create a Native Verifier
      • How to Create a Bilingual Verifier
      • How to Create a Global Verifier
        • Create a New Project
        • The Resources File
        • Implement the User Interface
        • Retrieve the Settings Values
        • Implement the UI Controller Class
        • Implement the Verification Logic
        • Enhance the Verifier
      • How to Create a Custom Message Control
        • Introduction to Custom Message Controls
        • Create a Custom Message Control
        • Add suggestion to a Custom Message Control
        • Edit Segment and Apply Changes to Document
      • API Reference
        • Sdl.Verification.Api
          • GlobalVerifierAttribute
          • GlobalVerifierSettingsPageAttribute
          • IGlobalVerifier
          • IHelpTopic
          • ILanguageDirectionVerifier
          • IMessageControlContainer
          • IMessageControlPlugIn
          • ISegmentChangedAware
          • ISerializeVerifierProfile
          • ISuggestionProvider
          • ITermVerifierContext
          • ITermVerifierSettingsContext
          • ITermVerifierSettingsContextAware
          • LanguageDirectionVerifierAttribute
          • MessageControlPlugInAttribute
          • SerializeProfileVerifierAttribute
          • Suggestion
          • TermPicklistField
          • WrongSettingsFileException
    • Batch Tasks
      • Overview
      • Developing a sample batch task
        • What our sample batch task should do
        • Setting up the Visual Studio project
        • Adding a Settings UI to our Batch Task
        • Processing Files and Application Logic
        • Rendering the Task Report
      • API Reference
        • Sdl.ProjectAutomation.AutomaticTasks
          • AbstractFileContentProcessingAutomaticTask
          • AbstractFileLevelAutomaticTask
          • AutomaticTaskAttribute
          • AutomaticTaskFileType
          • AutomaticTaskSupportedFileTypeAttribute
          • CancelHelper
          • LanguageDirection
          • MessageLevel
          • ProjectFileExtension
          • RequiresSettingsAttribute
          • TaskProgressEventArgs
          • WordCounter
    • Terminology Provider
      • Overview
      • Developing a Sample Terminology Provider
        • What our Sample Terminology Provider should do
        • Setting up the Visual Studio project
        • Selecting the Glossary File
        • Setting the Source and Target Language
        • Setting the Glossary Fields
        • Searching Terms
        • Displaying Entry Content
        • Adding Terms
      • API Reference
        • Sdl.Terminology.TerminologyProvider.Core
          • AbstractTerminologyProvider
          • Definition
          • DefinitionLanguage
          • DescriptiveField
          • Entry
          • EntryEventArgs
          • EntryField
          • EntryLanguage
          • EntryTerm
          • EntryTransaction
          • FieldLevel
          • FieldType
          • GenericCredentials
          • IConnectionAwareTerminologyProvider
          • IDefinition
          • IDefinitionLanguage
          • IDescriptiveField
          • IEntry
          • IEntryField
          • IEntryLanguage
          • IEntryTerm
          • IEntryTransaction
          • ILanguage
          • IMarkupPosition
          • IMultipleTerminologyProvider
          • ISearchMarkupResult
          • ISearchResult
          • ISearchResultWithTermbaseName
          • IServerBasedTerminologyProvider
          • ITerminologyMarkupProvider
          • ITerminologyProvider
          • ITerminologyProviderCredentialStore
          • ITerminologyProviderFactory
          • ITerminologyProviderReadOnly
          • ITerminologyProviderStatus
          • ITerminologyProviderViewerWinFormsUI
          • ITerminologyProviderWinFormsUI
          • MarkupPosition
          • SearchMarkupResult
          • SearchMarkupResultWithTermbaseName
          • SearchMode
          • SearchResult
          • SearchResultWithTermbaseName
          • TerminologyProviderCredential
          • TerminologyProviderCredentialStore
          • TerminologyProviderDisplayInfo
          • TerminologyProviderFactoryAttribute
          • TerminologyProviderManager
          • TerminologyProviderStatus
          • TerminologyProviderType
          • TerminologyProviderViewerWinFormsUIAttribute
          • TerminologyProviderWinFormsUIAttribute
          • TerminologyUserCredentials
          • TerminologyUserCredentials.SsoData
          • TerminologyUserManagerTokenType
          • TransactionType
        • Sdl.Terminology.TerminologyProvider.Core.Exceptions
          • ConnectionException
          • InvalidCredentialsException
          • MissingTerminologyProviderException
          • SearchParameterMissingException
    • Release Notes
      • Release Notes for Trados Studio 2021
      • Release Notes for Trados Studio 2021 SR1
      • Release Notes for Trados Studio 2021 SR1 CU5

    Class Segment

    Represents a segment, which is a sequence of SegmentElements, in a particular language.

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

    Constructors

    Segment()

    Initializes a new instance with the System.Globalization.CultureInfo.InvariantCulture, and an empty list of elements.

    Declaration
    public Segment()

    Segment(CultureInfo)

    Initializes a new instance with the specified culture, and an empty list of elements.

    Declaration
    public Segment(CultureInfo culture)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo culture

    The CultureInfo object representing the language.

    Properties

    Culture

    Gets or sets the culture for this segment.

    Declaration
    public CultureInfo Culture { get; set; }
    Property Value
    Type Description
    System.Globalization.CultureInfo

    CultureName

    Gets or sets the culture name for this segment. The culture name must be resolvable through CultureInfoExtensions.GetCultureInfo(string), or an exception will be thrown.

    Declaration
    public string CultureName { get; set; }
    Property Value
    Type Description
    System.String

    Elements

    Gets or sets the collection of elements in this segment.

    Declaration
    public List<SegmentElement> Elements { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<SegmentElement>

    HasPairedTags

    Gets a value which indicates whether this segment contains any paired tags. Only start tags are checked, it is assumed that the tag structure is valid.

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

    HasPlaceables

    Gets a bool value which indicates whether this segment contains any placeables. Note that the return value is only valid if the segment is tokenized.

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

    HasTags

    Gets a value which indicates whether this segment contains any tags.

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

    IsEmpty

    Gets a value indicating whether this instance contains any elements (false) or not (true).

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

    LastElement

    Gets or sets the last element of this segment.

    Declaration
    public SegmentElement LastElement { get; set; }
    Property Value
    Type Description
    SegmentElement

    Tokens

    Gets or sets the collection of tokens in this segment.

    Declaration
    public List<Token> Tokens { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<Token>

    Methods

    Add(SegmentElement)

    Adds the provided segment element to the segment's list of elements. When adding a text element, and the last segment element is a text element as well, they will be merged.

    Declaration
    public void Add(SegmentElement element)
    Parameters
    Type Name Description
    SegmentElement element

    The element to append

    Add(String)

    Adds the provided string as a new text element to the segment's list of elements. If the last segment element is a Text element as well, they will be merged.

    Declaration
    public void Add(string text)
    Parameters
    Type Name Description
    System.String text

    The text to append

    AddRange(IEnumerable<SegmentElement>)

    Adds all segment elements in the collection to this segment.

    Declaration
    public void AddRange(IEnumerable<SegmentElement> elements)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<SegmentElement> elements

    The elements to add

    AnchorDanglingTags()

    Sets the anchor for any tags which are not yet anchored (including standalone/placeholder tags). Does not modify tag IDs or alignment anchors.

    Declaration
    public void AnchorDanglingTags()

    Clear()

    Empties the list of segment elements.

    Declaration
    public void Clear()

    DeleteEmptyTagPairs(Boolean)

    Deletes empty tag pairs (a start tag directly followed by the end tag with the same tag anchor) from the segment.

    Declaration
    public bool DeleteEmptyTagPairs(bool onlyInPeripheralPositions)
    Parameters
    Type Name Description
    System.Boolean onlyInPeripheralPositions

    If true, will delete empty tag pairs only if they appear in peripheral positions (leading, trailing).

    Returns
    Type Description
    System.Boolean

    true if any tags were deleted, and false otherwise.

    DeleteTags()

    Removes all tags from the segment, applying the DeleteAll tag deletion mode.

    Declaration
    public bool DeleteTags()
    Returns
    Type Description
    System.Boolean

    true if any tags were deleted, and false otherwise.

    DeleteTags(Segment.DeleteTagsAction)

    Removes all tags from the segment, applying the specified tag deletion mode.

    Declaration
    public bool DeleteTags(Segment.DeleteTagsAction mode)
    Parameters
    Type Name Description
    Segment.DeleteTagsAction mode

    The tag deletion mode

    Returns
    Type Description
    System.Boolean

    true if any tags were deleted, and false otherwise.

    Duplicate()

    Creates a new instance that is a deep copy of this instance.

    Declaration
    public Segment Duplicate()
    Returns
    Type Description
    Segment

    A new instance that is a deep copy of this instance.

    Equals(Segment)

    Compares this instance to another Segment object.

    Declaration
    public bool Equals(Segment other)
    Parameters
    Type Name Description
    Segment other

    The other instance.

    Returns
    Type Description
    System.Boolean

    true if the language and all the elements are the same, otherwise false.

    FillUnmatchedStartAndEndTags()

    Inserts corresponding start and end tags for unmatched end and start tags to the segment. For unmatched end tags, the corresponding start tags are inserted at the beginning of the segment. Corresponding end tags for unmatched start tags are added at the end. In certain cases, not all dangling tags can be filled, and in order to obtain a valid segment without any unmatched tags, RemoveUnmatchedStartAndEndTags(Boolean) should be called after calling this method. Note that only the tag type is checked, not whether there are start or end tags without a corresponding tag having the same tag anchor.

    The method will discontinue if the tag pairing structure is incorrect (i.e. if there are overlapping tags).

    Declaration
    public bool FillUnmatchedStartAndEndTags()
    Returns
    Type Description
    System.Boolean

    true if the segment was modified, and false otherwise. Note that after calling this method, there may still be unmatched start or end tags in the segment.

    FindTag(TagType, Int32)

    Finds and returns the tag with the provided type and the provided tag anchor, or null if no such tag exists in the segment.

    Declaration
    public Tag FindTag(TagType type, int anchor)
    Parameters
    Type Name Description
    TagType type
    System.Int32 anchor
    Returns
    Type Description
    Tag

    GetHashCode()

    System.Object.GetHashCode()
    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this object

    Overrides
    System.Object.GetHashCode()

    GetMaxTagAnchor()

    Returns the highest tag anchor used in the segment, or 0 if no tags are present.

    Declaration
    public int GetMaxTagAnchor()
    Returns
    Type Description
    System.Int32

    GetMinMaxTagAnchor(out Int32, out Int32)

    Returns the smallest and largest tag anchor used in the segment. Both default to 0.

    Declaration
    public void GetMinMaxTagAnchor(out int min, out int max)
    Parameters
    Type Name Description
    System.Int32 min
    System.Int32 max

    GetTagCount()

    Returns the number of tags in the segment. Paired tags are counted only once.

    Declaration
    public int GetTagCount()
    Returns
    Type Description
    System.Int32

    The segment's tag count

    GetTagIdGroups()

    Computes a mapping from the start tag token index to that tag's tag ID. Only start and standalone/placeholder tags are included in the mapping. The mapping may be n:1. The segment must be tokenized, or an exception is thrown.

    Declaration
    public Dictionary<int, string> GetTagIdGroups()
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.Int32, System.String>

    GetTagPairings()

    Returns a dictionary of paired tag token indices, mapping from the start tag's token index to the end tag's token index. The segment must be tokenized, or an exception is thrown.

    Declaration
    public Dictionary<int, int> GetTagPairings()
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.Int32, System.Int32>

    GetTokenIndex(SegmentPosition)

    Returns the index of the token at the specified position.

    Declaration
    public int GetTokenIndex(SegmentPosition p)
    Parameters
    Type Name Description
    SegmentPosition p
    Returns
    Type Description
    System.Int32

    The index of the token at the specified position, or -1 if it is not found, or if the segment is not tokenized.

    GetWeakHashCode()

    Returns a hash code which does not depend on tag anchors in the segment. This can be used for translation tracking in bilingual documents.

    Declaration
    public int GetWeakHashCode()
    Returns
    Type Description
    System.Int32

    A hash code which is independent of tag anchors.

    HasPeripheralWhitespace()

    Determines whether the segment starts or ends with at least one whitespace character.

    Declaration
    public bool HasPeripheralWhitespace()
    Returns
    Type Description
    System.Boolean

    HasTokenBundles()

    Returns true if any of the segment's tokens is a TokenBundle (i.e. an ambigous tokenization), and false otherwise. Token bundles should only be used inside the TM Kernel and not be returned through the TM API.

    Declaration
    public bool HasTokenBundles()
    Returns
    Type Description
    System.Boolean

    HasUnmatchedStartOrEndTags()

    Determines whether the segment has any unmatched start or end tags. Note that this method only tests the tag type, and does not handle paired tags where the start or end tag are missing.

    Declaration
    public bool HasUnmatchedStartOrEndTags()
    Returns
    Type Description
    System.Boolean

    true if the segment contains any unmatched start or end tags, and false otherwise.

    IsValid()

    Determines if this segment is valid.

    Declaration
    public bool IsValid()
    Returns
    Type Description
    System.Boolean

    true if the segment is valid, false othwerwise.

    MergeAdjacentTextRuns()

    Merges adjacent text runs.

    Declaration
    public void MergeAdjacentTextRuns()

    RemoveTokenBundles()

    Replaces token bundles with the "best" token in that bundle. Returns true if any replacement has been done, and false otherwise.

    Declaration
    public bool RemoveTokenBundles()
    Returns
    Type Description
    System.Boolean

    RemoveUnmatchedStartAndEndTags()

    Deletes all tags from the segment which have a tag type of Core.TagType.UnmatchedStart or Core.TagType.UnmatchedEnd. Note that this method only tests the tag type, and does not handle paired tags where the start or end tag are missing.

    Declaration
    public bool RemoveUnmatchedStartAndEndTags()
    Returns
    Type Description
    System.Boolean

    true if the segment was modified, and false otherwise.

    RemoveUnmatchedStartAndEndTags(Boolean)

    Deletes all tags from the segment which have a tag type of Core.TagType.UnmatchedStart or Core.TagType.UnmatchedEnd, if these tags occur in peripheral positions, which means that dangling end tags are only removed if they appear at the start of the segment, and dangling start tags are only removed if they appear at the end of the segment, with no other tags or text preceding the tag (in case of segment-initial dangling end tags), or following the tag (for segment-trailing dangling start tags).

    Note that this method only tests the tag type, and does not handle paired tags where the start or end tag are missing.

    Declaration
    public bool RemoveUnmatchedStartAndEndTags(bool peripheralPositionsOnly)
    Parameters
    Type Name Description
    System.Boolean peripheralPositionsOnly
    Returns
    Type Description
    System.Boolean

    true if the segment was modified, and false otherwise.

    RenumberTagAnchors(Int32, ref Int32)

    Renumbers tag anchors, starting at nextTagAnchor, in a consecutive manner. Although tag anchors have no semantics for standalone tags, they are also anchored in the same manner. Errors in tag numbering will be ignored (but preserved, i.e. invalid tag anchors will be mapped to potentially new, also invalid tag anchors).

    Declaration
    public bool RenumberTagAnchors(int nextTagAnchor, ref int maxAlignmentAnchor)
    Parameters
    Type Name Description
    System.Int32 nextTagAnchor

    The first anchor to assign (must be larger than zero)

    System.Int32 maxAlignmentAnchor

    Returns the highest alignment anchor in the renumbered segment.

    Returns
    Type Description
    System.Boolean

    true if the any anchors were reassigned, and false otherwise.

    RenumberTagAnchors(ref Int32)

    Renumbers tag anchors so that they start at 1 and are consecutive. Although tag anchors have no semantics for standalone tags, they are also anchored in the same manner. Errors in tag numbering will be ignored (but preserved, i.e. invalid tag anchors will be mapped to potentially new, also invalid tag anchors).

    Declaration
    public bool RenumberTagAnchors(ref int maxAlignmentAnchor)
    Parameters
    Type Name Description
    System.Int32 maxAlignmentAnchor
    Returns
    Type Description
    System.Boolean

    true if the any anchors were reassigned, and false otherwise.

    ToPlain()

    Returns a string containing only the plain text in this segment. Note that text placeholders will be replaced with their text equivalent.

    Declaration
    public string ToPlain()
    Returns
    Type Description
    System.String

    A string containing only the plain text in this segment.

    ToPlain(SegmentRange)

    Computes the plain-text version of the part of the segment specified by the provided range.

    Declaration
    public string ToPlain(SegmentRange range)
    Parameters
    Type Name Description
    SegmentRange range

    The range of the segment to convert

    Returns
    Type Description
    System.String

    The plain-text string corresponding to the provided range.

    ToPlain(Boolean, Boolean, out List<SegmentPosition>)

    Computes the plain-text version of the segment and returns, in the ranges list, the segment range of each character of the result string. The number of elements in that collection will be equal to the length of the string in characters.

    Declaration
    public string ToPlain(bool tolower, bool tobase, out List<SegmentPosition> ranges)
    Parameters
    Type Name Description
    System.Boolean tolower

    If true, the returned string will be lower-cased

    System.Boolean tobase

    If true, all letters will be mapped to their base character (i.e. diacritics will be stripped)

    System.Collections.Generic.List<SegmentPosition> ranges

    A reference to the list of segment ranges which will be returned upon completion. The list includes, for each character in the result string, the position in the original segment.

    Returns
    Type Description
    System.String

    ToPlain(Int32, Int32)

    Returns a string containing only the plain text in this segment, covering the given token range. An exception will be thrown if the segment's tokens are not set or the token range is outside the bounds.

    Declaration
    public string ToPlain(int fromToken, int intoToken)
    Parameters
    Type Name Description
    System.Int32 fromToken

    The index of the first token

    System.Int32 intoToken

    The index of the last token (inclusive, i.e. "into" semantics)

    Returns
    Type Description
    System.String

    A plain text string covering the specified token range

    ToString()

    System.Object.ToString()
    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation of the object, for display purposes.

    Overrides
    System.Object.ToString()

    Trim()

    Removes leading whitespace from the first segment element, if that is a text element, and trailing whitespace from the last segment element, if that is a text element. If the first/last segment element is not a text element, it will not be altered. Also, leading (trailing) whitespace will not be removed from a text element if it is preceded (followed) only by non-text elements. Also deletes any null elements.

    Declaration
    public void Trim()

    TrimEnd()

    Removes trailing whitespace from the last segment element, if that is a text element. If the last segment element is not a text element, nothing will happen. Hence, trailing whitespace will not be removed from a text element if it is followed by non-text elements. The number of elements may be altered by this method. Empty (null) elements will also be removed.

    Declaration
    public string TrimEnd()
    Returns
    Type Description
    System.String

    A string consisting of the trimmed-off characters, or null if no characters have been trimmed off

    TrimStart()

    Removes leading whitespace from the first segment element, if that is a text element. If the first segment element is not a text element, nothing will happen. Hence, leading whitespace will not be removed from a text element if it is preceded by non-text elements. The number of elements may be altered by this method. Empty (null) elements will also be removed.

    Declaration
    public string TrimStart()
    Returns
    Type Description
    System.String

    A string consisting of the trimmed-off characters, or null if no characters have been trimmed off

    UpdateFromTokenIndices(ICollection<Int32>)

    Updates the segment's text from the tokens, and adjusts span indices accordingly. An exception is thrown if the segment is not tokenized.

    Declaration
    public bool UpdateFromTokenIndices(ICollection<int> tokenIndices)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<System.Int32> tokenIndices

    The list of tokens to update.

    Returns
    Type Description
    System.Boolean

    true if the segment was changed, and false otherwise.

    Validate()

    Validates the current instance, with the ReportAllErrors validation mode.

    Declaration
    public ErrorCode Validate()
    Returns
    Type Description
    ErrorCode

    An error code (which may be OK, indicating the segment is valid).

    Validate(Segment.ValidationMode)

    Performs validation checks on this instance, applying the specified validation mode.

    Declaration
    public ErrorCode Validate(Segment.ValidationMode mode)
    Parameters
    Type Name Description
    Segment.ValidationMode mode

    The validation mode to apply

    Returns
    Type Description
    ErrorCode

    An error code (which may be OK, indicating the segment is valid).

    VerifyTokenSpans()

    Verifies whether the spans of the segment's tokens are correct and reflect the segment's text. Note that the segment should be tokenized. If not, true is returned.

    Declaration
    public bool VerifyTokenSpans()
    Returns
    Type Description
    System.Boolean

    true if the verification was successful or the segment is not tokenized, and false otherwise.

    WeakEquals(Segment)

    Computes weak equality with another segment.

    Weak equality does not check culture compatibility and tag anchors do not need to be identical, but text elements must match, as well as the order of tags (element similarity must not be None)

    Declaration
    public bool WeakEquals(Segment other)
    Parameters
    Type Name Description
    Segment other
    Returns
    Type Description
    System.Boolean

    On this page

    • Constructors
      • Segment()
      • Segment(CultureInfo)
    • Properties
      • Culture
      • CultureName
      • Elements
      • HasPairedTags
      • HasPlaceables
      • HasTags
      • IsEmpty
      • LastElement
      • Tokens
    • Methods
      • Add(SegmentElement)
      • Add(String)
      • AddRange(IEnumerable<SegmentElement>)
      • AnchorDanglingTags()
      • Clear()
      • DeleteEmptyTagPairs(Boolean)
      • DeleteTags()
      • DeleteTags(Segment.DeleteTagsAction)
      • Duplicate()
      • Equals(Segment)
      • FillUnmatchedStartAndEndTags()
      • FindTag(TagType, Int32)
      • GetHashCode()
      • GetMaxTagAnchor()
      • GetMinMaxTagAnchor(out Int32, out Int32)
      • GetTagCount()
      • GetTagIdGroups()
      • GetTagPairings()
      • GetTokenIndex(SegmentPosition)
      • GetWeakHashCode()
      • HasPeripheralWhitespace()
      • HasTokenBundles()
      • HasUnmatchedStartOrEndTags()
      • IsValid()
      • MergeAdjacentTextRuns()
      • RemoveTokenBundles()
      • RemoveUnmatchedStartAndEndTags()
      • RemoveUnmatchedStartAndEndTags(Boolean)
      • RenumberTagAnchors(Int32, ref Int32)
      • RenumberTagAnchors(ref Int32)
      • ToPlain()
      • ToPlain(SegmentRange)
      • ToPlain(Boolean, Boolean, out List<SegmentPosition>)
      • ToPlain(Int32, Int32)
      • ToString()
      • Trim()
      • TrimEnd()
      • TrimStart()
      • UpdateFromTokenIndices(ICollection<Int32>)
      • Validate()
      • Validate(Segment.ValidationMode)
      • VerifyTokenSpans()
      • WeakEquals(Segment)
    Back to top Generated by DocFX