Class GenericSideBySideWebBrowserPreviewControl
This class is used to preview the source and target file in two System.Windows.Forms.WebBrowser controls.
Inheritance
Implements
Inherited Members
Namespace: Sdl.FileTypeSupport.Framework.PreviewControls
Assembly: Sdl.FileTypeSupport.Framework.PreviewControls.dll
Syntax
public class GenericSideBySideWebBrowserPreviewControl : AbstractPreviewControl, IFileTypeDefinitionAware, ISourceAndTargetFilePreviewControl, IAbstractPreviewControl, IAbstractPreviewController, ISourceAndTargetFilePreviewController, IDisposable
Constructors
GenericSideBySideWebBrowserPreviewControl()
Constructor.
Declaration
public GenericSideBySideWebBrowserPreviewControl()
Properties
Control
The actual Windows Forms control for the preview display. See: Control.
Declaration
public override Control Control { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Control |
Overrides
InitialHtmlPage
If set then an initial HTML page will be displayed containg the content of this string in a tempoary .htm file.
Declaration
public string InitialHtmlPage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SourcePreviewFile
Default implementation is accessor for member field.
Declaration
public TempFileManager SourcePreviewFile { get; set; }
Property Value
Type | Description |
---|---|
TempFileManager |
TargetPreviewFile
Default implementation is accessor for member field.
Declaration
public TempFileManager TargetPreviewFile { get; set; }
Property Value
Type | Description |
---|---|
TempFileManager |
Methods
Dispose()
Standard implementation of IDisposable, calls Dispose(true).
Declaration
public void Dispose()
Dispose(Boolean)
Implementation of the recommended dispose protocol. Deletes the managed WebBrowser control
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if this method is called from IDisposable.Dispose() and false if called from Finalizer |
Finalize()
Used for a standard implementation of IDisposable.
Declaration
protected void Finalize()
Refresh()
Called to initially display or refresh the display of a the source and target pages in two System.Windows.Forms.WebBrowser controls.
If either the source and target files do not exist then the InitialHtmlPage page will be displayed.
Declaration
public override void Refresh()