Class NavigableDualBrowserControl
NavigableDualBrowserControl
Inheritance
Namespace: Sdl.FileTypeSupport.Framework.PreviewControls
Assembly: Sdl.FileTypeSupport.Framework.PreviewControls.dll
Syntax
[ComVisible(true)]
public class NavigableDualBrowserControl : UserControlConstructors
NavigableDualBrowserControl()
NavigableDualBrowserControl()
Declaration
public NavigableDualBrowserControl()Properties
HighlightColor
Allows browser scripts to access the desired HighlightColor
Declaration
public string HighlightColor { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
SelectedSegmentId
Allows browser scripts to access the current active segment
Declaration
public string SelectedSegmentId { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
WebBrowserSrc
The browser control that displays the source language content.
Declaration
public WebBrowser WebBrowserSrc { get; }Property Value
| Type | Description | 
|---|---|
| System.Windows.Forms.WebBrowser | 
WebBrowserTrg
The browser control that displays the target language content.
Declaration
public WebBrowser WebBrowserTrg { get; }Property Value
| Type | Description | 
|---|---|
| System.Windows.Forms.WebBrowser | 
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. | 
FireWindowSelectionChanged()
Fired when the Window Selection has been changed
Declaration
protected void FireWindowSelectionChanged()GetSelectedSegment()
Gets the currently selected segment in the Browser
Declaration
public SegmentReference GetSelectedSegment()Returns
| Type | Description | 
|---|---|
| SegmentReference | A Segment Marker indicating which segment is currently selected | 
JumpToActiveElement()
Highlight active segment by kicking off a timer.
Declaration
public void JumpToActiveElement()RefreshTargetBrowser()
Refresh the target browser control and re-highlight the active segment in it.
Declaration
public void RefreshTargetBrowser()ScrollToSegment(SegmentReference)
Scrolls to the segment in the Browser referenced by the SegmentMarker passed in
Declaration
public void ScrollToSegment(SegmentReference segment)Parameters
| Type | Name | Description | 
|---|---|---|
| SegmentReference | segment | A reference to the segment to scroll to | 
SelectSegment(String)
Public method called from HTML Browser control when a segment has been selected
Declaration
public void SelectSegment(string puSegId)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | puSegId | A string representing the pu/segment id of the segment which has been selected | 
SetBestMatchingHighlightColor(Color)
Set the highlight color to the color that best matches the specified color.
Declaration
public void SetBestMatchingHighlightColor(Color clr)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Color | clr | The color of the highlight to use | 
Events
WindowSelectionChanged
Raised when SelectSegment(String) is called.
Declaration
public event PreviewControlHandler WindowSelectionChangedEvent Type
| Type | Description | 
|---|---|
| PreviewControlHandler |