C# Class WpfDocumentPreviewer.PreviewHandlerHost

Inheritance: System.Windows.Forms.Control
Show file Open project: Gainedge/BetterExplorer

Private Properties

Property Type Description
GetPreviewHandlerGUID System.Guid
SHCreateItemFromParsingName void

Public Methods

Method Description
Open ( Stream stream, System.Guid previewHandler ) : bool

Opens the specified stream using the preview handler COM type with the provided GUID and displays the result in this PreviewHandlerHost.

Open ( string filename, System.Guid &previewGuid ) : bool

Opens the specified file using the appropriate preview handler and displays the result in this PreviewHandlerHost.

PreviewHandlerHost ( ) : System

Initialialises a new instance of the PreviewHandlerHost class.

UnloadPreviewHandler ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the PreviewHandlerHost and optionally releases the managed resources.

OnPaint ( PaintEventArgs e ) : void

Paints the error message text on the PreviewHandlerHost control.

OnResize ( EventArgs e ) : void

Resizes the hosted preview handler when this PreviewHandlerHost is resized.

Private Methods

Method Description
GetPreviewHandlerGUID ( string filename ) : System.Guid
SHCreateItemFromParsingName ( [ pszPath, [ pbc, [ riid, [ IidParameterIndex = 2)]outIShellItemppv ) : void

Method Details

Dispose() protected method

Releases the unmanaged resources used by the PreviewHandlerHost and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool
return void

OnPaint() protected method

Paints the error message text on the PreviewHandlerHost control.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResize() protected method

Resizes the hosted preview handler when this PreviewHandlerHost is resized.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

Open() public method

Opens the specified stream using the preview handler COM type with the provided GUID and displays the result in this PreviewHandlerHost.
public Open ( Stream stream, System.Guid previewHandler ) : bool
stream Stream
previewHandler System.Guid
return bool

Open() public method

Opens the specified file using the appropriate preview handler and displays the result in this PreviewHandlerHost.
public Open ( string filename, System.Guid &previewGuid ) : bool
filename string
previewGuid System.Guid
return bool

PreviewHandlerHost() public method

Initialialises a new instance of the PreviewHandlerHost class.
public PreviewHandlerHost ( ) : System
return System

UnloadPreviewHandler() public method

public UnloadPreviewHandler ( ) : void
return void