Class ConcordanceSearchController
Class responsible for interacting with the Concordance View
Inheritance
System.Object
ConcordanceSearchController
Implements
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()
Namespace: Sdl.TranslationStudioAutomation.IntegrationApi.Editor.ConcordanceSearch
Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
Syntax
public class ConcordanceSearchController : IConcordanceSearchController
Properties
SearchType
Gets the current selected search type (Source , Target)
Declaration
public ConcordanceSearchType SearchType { get; }
Property Value
| Type | Description |
|---|---|
| ConcordanceSearchType |
Methods
ActivateView()
Brings Concordance window into View
Declaration
public void ActivateView()
Clear()
Clears the last performed search
Declaration
public void Clear()
FocusSearchTextBox()
Puts the focus into the search text box
Declaration
public void FocusSearchTextBox()
HasSearchResult(Int32)
Returns true if there is a search result for the given row number
Declaration
public bool HasSearchResult(int rowNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowNumber |
Returns
| Type | Description |
|---|---|
| System.Boolean |
SelectSearchResult(Int32)
Selects the result at the given row number
Declaration
public void SelectSearchResult(int rowNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowNumber |
ToggleSearchType(ConcordanceSearchType)
Switches to the given Search Type
Declaration
public void ToggleSearchType(ConcordanceSearchType searchType)
Parameters
| Type | Name | Description |
|---|---|---|
| ConcordanceSearchType | searchType |
TryGetCurrentSearchResults()
Returns the current concordance search results visible on the UI
Declaration
public ConcordanceSearchResults TryGetCurrentSearchResults()
Returns
| Type | Description |
|---|---|
| ConcordanceSearchResults |
TryPerformSearch(String)
Performs a concordance search for the given text
Declaration
public void TryPerformSearch(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text |