Class SubsegmentSearchResults
Represents a set of results returned by the translation memory after a subsegment search operation for a given input (segment/translation unit/string).
Inheritance
System.Object
SubsegmentSearchResults
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
public class SubsegmentSearchResults : IEnumerable<SubsegmentSearchResult>, IEnumerable
Constructors
Initializes a new instance
Declaration
public SubsegmentSearchResults(short sourceFeatureStartIndex, short sourceFeatureCount, short significantFeatureCount)
Parameters
Type |
Name |
Description |
System.Int16 |
sourceFeatureStartIndex |
|
System.Int16 |
sourceFeatureCount |
|
System.Int16 |
significantFeatureCount |
|
Properties
Gets the number of results in this instance.
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public short SignificantFeatureCount { get; }
Property Value
Type |
Description |
System.Int16 |
|
Declaration
public short SourceFeatureCount { get; }
Property Value
Type |
Description |
System.Int16 |
|
Declaration
public short SourceFeatureStartIndex { get; }
Property Value
Type |
Description |
System.Int16 |
|
Methods
Declaration
public void Add(SubsegmentSearchResult result)
Parameters
Declaration
public void Remove(SubsegmentSearchResult result)
Parameters
Removes all the elements that match the condition defined by the specified predicate
Declaration
public int RemoveAll(Func<SubsegmentSearchResult, bool> predicate)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Explicit Interface Implementations
Returns an enumerator to iterate through the list of search results.
Declaration
IEnumerator<SubsegmentSearchResult> IEnumerable<SubsegmentSearchResult>.GetEnumerator()
Returns
Returns an enumerator to iterate through the list of search results.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable