C# Класс WpfDocumentPreviewer.PreviewHandlerHost

Наследование: System.Windows.Forms.Control
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetPreviewHandlerGUID System.Guid
SHCreateItemFromParsingName void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
GetPreviewHandlerGUID ( string filename ) : System.Guid
SHCreateItemFromParsingName ( [ pszPath, [ pbc, [ riid, [ IidParameterIndex = 2)]outIShellItemppv ) : void

Описание методов

Dispose() защищенный Метод

Releases the unmanaged resources used by the PreviewHandlerHost and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

OnPaint() защищенный Метод

Paints the error message text on the PreviewHandlerHost control.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnResize() защищенный Метод

Resizes the hosted preview handler when this PreviewHandlerHost is resized.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void

Open() публичный Метод

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
Результат bool

Open() публичный Метод

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
Результат bool

PreviewHandlerHost() публичный Метод

Initialialises a new instance of the PreviewHandlerHost class.
public PreviewHandlerHost ( ) : System
Результат System

UnloadPreviewHandler() публичный Метод

public UnloadPreviewHandler ( ) : void
Результат void