Class DisplayFilterAdapter
An adapter class for display filter implementations.
This implementation calls EvaluateRow frim IDisplayFilter to determine visibility for rows.
Implements
Sdl.TranslationStudio.Api.Editor.IFoldingFilter
Inherited Members
Namespace: SdlSdl.TranslationStudioAutomationIntegrationApiDisplayFilters
Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
Syntax
public class DisplayFilterAdapter : IFoldingFilter
Constructors
DisplayFilterAdapter(IDisplayFilter, ITranslatableDocument)
This implementation calls EvaluateRow frim IDisplayFilter to determine visibility for rows.
Declaration
public DisplayFilterAdapter(IDisplayFilter displayFilter, ITranslatableDocument document)
Parameters
Type | Name | Description |
---|---|---|
IDisplayFilter | displayFilter | |
Sdl.TranslationStudio.Api.Editor.ITranslatableDocument | document |
Methods
Initialise()
Initialise
Declaration
public void Initialise()
IsFileBoundaryRow(IRowInfo)
Helper to determine if a row acts as a file boundary.
Declaration
protected static bool IsFileBoundaryRow(IRowInfo rowInfo)
Parameters
Type | Name | Description |
---|---|---|
IRowInfo | rowInfo |
Returns
Type | Description |
---|---|
bool |
SetFoldingFilterProvider(IFoldingFilterProvider)
For internal use only. Allows the FoldingFilterProvider to be set on the FoldingFilter after it has been created, so the filter can access the active document etc.
Declaration
public void SetFoldingFilterProvider(IFoldingFilterProvider provider)
Parameters
Type | Name | Description |
---|---|---|
Sdl.TranslationStudio.Api.Editor.IFoldingFilterProvider | provider |
SetRowVisibility(IRowInfo)
Compare the supplied row with the criteria and determine if the row should be visible
Declaration
public bool SetRowVisibility(IRowInfo row)
Parameters
Type | Name | Description |
---|---|---|
IRowInfo | row | The row to compare |
Returns
Type | Description |
---|---|
bool | true if the segment should be visible |
Implements
Sdl.TranslationStudio.Api.Editor.IFoldingFilter