Search Results for

    Show / Hide Table of Contents

    Class GenericInternalWebBrowserPreviewControl

    This class can be used to preview a single source or target file in a WebBrowser control. The GenericSideBySideWebBrowserPreviewControl can be used to preview the source and target file in two System.Windows.Forms.WebBrowser controls.

    Inheritance
    System.Object
    AbstractFileTypeDefinitionComponent
    AbstractPreviewControl
    GenericInternalWebBrowserPreviewControl
    Implements
    IFileTypeDefinitionAware
    ISingleFilePreviewControl
    IAbstractPreviewControl
    IAbstractPreviewController
    ISingleFilePreviewController
    System.IDisposable
    Inherited Members
    AbstractFileTypeDefinitionComponent.FileTypeDefinition
    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.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
    AbstractPreviewControl.Control

    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. The GenericSideBySideWebBrowserPreviewControl can be used to display both source and target files in two WebBrowser controls.

    Declaration
    public override void Refresh()
    Overrides
    AbstractPreviewControl.Refresh()

    Implements

    IFileTypeDefinitionAware
    ISingleFilePreviewControl
    IAbstractPreviewControl
    IAbstractPreviewController
    ISingleFilePreviewController
    System.IDisposable

    On this page

    • Constructors
      • GenericInternalWebBrowserPreviewControl()
    • Properties
      • Control
      • InitialHtmlPage
      • PreviewFile
    • Methods
      • Dispose()
      • Dispose(Boolean)
      • Finalize()
      • Refresh()
    • Implements
    Back to top Generated by DocFX