Search Results for

    Show / Hide Table of Contents

    Class GenericSideBySideWebBrowserPreviewControl

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

    Inheritance
    System.Object
    AbstractFileTypeDefinitionComponent
    AbstractPreviewControl
    GenericSideBySideWebBrowserPreviewControl
    Implements
    IFileTypeDefinitionAware
    ISourceAndTargetFilePreviewControl
    IAbstractPreviewControl
    IAbstractPreviewController
    ISourceAndTargetFilePreviewController
    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 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
    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

    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. The GenericInternalWebBrowserPreviewControl can be used to display a single source or target file in a WebBrowser control.

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

    Implements

    IFileTypeDefinitionAware
    ISourceAndTargetFilePreviewControl
    IAbstractPreviewControl
    IAbstractPreviewController
    ISourceAndTargetFilePreviewController
    System.IDisposable

    On this page

    • Constructors
      • GenericSideBySideWebBrowserPreviewControl()
    • Properties
      • Control
      • InitialHtmlPage
      • SourcePreviewFile
      • TargetPreviewFile
    • Methods
      • Dispose()
      • Dispose(Boolean)
      • Finalize()
      • Refresh()
    • Implements
    Back to top Generated by DocFX