Click or drag to resize

ShellFilePreview Methods

The ShellFilePreview type exposes the following members.

Methods
 NameDescription
Public methodBeginInit Signals the object that initialization is starting.
Public methodClear Clears the preview
Protected methodDispose Disposal method for the object that also cleans up resources that are used.
(Overrides ControlDispose(Boolean))
Public methodEndInit Signals the object that initialization is complete.
Public methodFolderChanged Called by ShellControlConnector when the current folder has changed.
Public methodFullRefresh Forces the reload of the current file.
Public methodGetDisplayRectGets display rectangle.
Public methodGetSynchronizationContext PreviewHost must provide its SynchronizationContext to be used by async events.
Public methodGetWindowHandleGets window handle.
Public methodGoUp Not supported.
Protected methodOnAfterPreviewLoadedCalls the AfterPreviewLoaded event.
Public methodOnCommonPreviewHandlerLoaded Controls implementing this interface must implement this eventhandler, which is called after the preview has been loaded.
Protected methodOnCreateControlRaises the CreateControl method.
(Overrides ControlOnCreateControl)
Protected methodOnEnabledChanged While disabled the control only stored the current filename. On enabling a FullRefresh is triggered.
(Overrides ControlOnEnabledChanged(EventArgs))
Protected methodOnHandleDestroyed Raises the HandleDestroyed event.
(Overrides ControlOnHandleDestroyed(EventArgs))
Protected methodOnLoadPreview Calls the LoadPreview event.
Protected methodOnPaint Paints the error message text on the ShellFilePreview control.
(Overrides ControlOnPaint(PaintEventArgs))
Protected methodOnResize Passes the resize event to the current PreviewHandler
(Overrides ControlOnResize(EventArgs))
Protected methodOpen Opens the path that is passed with the matching preview handler.
Public methodRefresh(RefreshLevel) Refreshes the control.
Public methodRefresh(RefreshLevel, ItemIdList) Refreshes the control.
Public methodSelectedFileChange Called by ShellControlConnector when the selected file has changed.
Public methodSmartRefresh Forces the reload of the current file. There is no difference compared to FullRefresh.
Top
Extension Methods
 NameDescription
Public Extension MethodGetSelfAndDescendants Returns a flattened collection of a control and all of its descendant controls.
(Defined by ExtensionMethods)
Public Extension MethodHandleNeededA Control extension method that ensures that the handle for a control is created.
(Defined by ExtensionMethods)
Public Extension MethodScaledPixelsAn extension method for controls: It scales the passed pixels according to the current dpi the control is displayed with.
(Defined by ExtensionMethods)
Public Extension MethodScaleFontA Control extension method that scales font according to the passed factor.
(Defined by ExtensionMethods)
Top
See Also