Click or drag to resize
SearchResults Methods

The SearchResults type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a new search result to the collection.
Public methodStatic memberAreEqual
Determines whether two search results are equal, by comparing the segments of the memory translation units.
Public methodCap
Caps the number of search results to at most maxCapacity elements. If the object holds less than the maximum number, this method has no effect.
Public methodCheckForMultipleTranslations
Count the number of exact matches in the result and set the MultipleTranslations flag and penalty accordingly. This is only valid for normal searches; nothing will be changed for concordance searches.
Public methodClear
Removes all results.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge
Appends addtional search results to the current list of search results. Note that other fields, such as the source tokens or the source word count, are not merged (although they may differ for cross-TM searches).
Public methodRemoveAll
Removes all the elements that match the condition defined by the specified predicate
Public methodRemoveDuplicates
Removes any duplicate search results. The duplicate with the lowest index is kept, and other duplicates are removed.
Public methodRemoveDuplicates(FuncSearchResult, SearchResult, SearchResult)
Removes any duplicate search results.
Public methodSort
Sorts the results in this instance using the currently set sort order (see SortOrder), or the default sort order if no sort order is set.
Public methodSort(String)
Sorts the results in this instance based on the specified sort order.
Public methodSort(SortSpecification)
Sorts the results in this instance based on the specified sort order.
Public methodSort(SortSpecification, SearchResultsSearchResultComparer)
Sorts the results in this instance based on the specified sort order.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

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