Class DisplayFilterAdapter
An adapter class for display filter implementations.
This implementation calls EvaluateRow frim IDisplayFilter to determine visibility for rows.
Inheritance
System.Object
DisplayFilterAdapter
Implements
Sdl.TranslationStudio.Api.Editor.IFoldingFilter
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.DisplayFilters
Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
Syntax
public class DisplayFilterAdapter
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 |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean | true if the segment should be visible |
Implements
Sdl.TranslationStudio.Api.Editor.IFoldingFilter