Class ConcordanceSearchController
Class responsible for interacting with the Concordance View
Implements
Inherited Members
Namespace: SdlSdl.TranslationStudioAutomationIntegrationApiSdl.TranslationStudioAutomation.IntegrationApi.EditorConcordanceSearch
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(int)
Returns true if there is a search result for the given row number
Declaration
public bool HasSearchResult(int rowNumber)
Parameters
Type | Name | Description |
---|---|---|
int | rowNumber |
Returns
Type | Description |
---|---|
bool |
SelectSearchResult(int)
Selects the result at the given row number
Declaration
public void SelectSearchResult(int rowNumber)
Parameters
Type | Name | Description |
---|---|---|
int | 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 |
---|---|---|
string | text |