C# Class WpfDocumentPreviewer.PreviewHandlerHost

Inheritance: System.Windows.Forms.Control
Afficher le fichier Open project: Gainedge/BetterExplorer

Private Properties

Свойство Type Description
GetPreviewHandlerGUID System.Guid
SHCreateItemFromParsingName void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

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

Method Details

Dispose() protected méthode

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

OnPaint() protected méthode

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

OnResize() protected méthode

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

Open() public méthode

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
Résultat bool

Open() public méthode

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
Résultat bool

PreviewHandlerHost() public méthode

Initialialises a new instance of the PreviewHandlerHost class.
public PreviewHandlerHost ( ) : System
Résultat System

UnloadPreviewHandler() public méthode

public UnloadPreviewHandler ( ) : void
Résultat void