Class GenericInternalWebBrowserPreviewControl
This class can be used to preview a single source or target file in a WebBrowser control.
Inheritance
Implements
Inherited Members
Namespace: Sdl.FileTypeSupport.Framework.PreviewControls
Assembly: Sdl.FileTypeSupport.Framework.PreviewControls.dll
Syntax
public class GenericInternalWebBrowserPreviewControl : AbstractPreviewControl, IFileTypeDefinitionAware, ISingleFilePreviewControl, IAbstractPreviewControl, IAbstractPreviewController, ISingleFilePreviewController, IDisposable
Constructors
GenericInternalWebBrowserPreviewControl()
Constructor.
Declaration
public GenericInternalWebBrowserPreviewControl()
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 |
PreviewFile
Default implementation is accessor for member field.
Declaration
public TempFileManager PreviewFile { 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 single page in a System.Windows.Forms.WebBrowser control.
If both source and target files exist then only the target file will be displayed.
Declaration
public override void Refresh()