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 methodGetDisplayRect
Gets display rectangle.
Public methodGetSynchronizationContext
PreviewHost must provide its SynchronizationContext to be used by async events.
Public methodGetWindowHandle
Gets window handle.
Public methodGoUp
Not supported.
Protected methodOnAfterPreviewLoaded
Calls the AfterPreviewLoaded event.
Public methodOnCommonPreviewHandlerLoaded
Controls implementing this interface must implement this eventhandler, which is called after the preview has been loaded.
Protected methodOnCreateControl (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 MethodHandleNeeded
A Control extension method that ensures that the handle for a control is created.
(Defined by ExtensionMethods.)
Public Extension MethodScaledPixels
An extension method for controls: It scales the passed pixels according to the current dpi the control is displayed with.
(Defined by ExtensionMethods.)
Public Extension MethodScaleFont
A Control extension method that scales font according to the passed factor.
(Defined by ExtensionMethods.)
Top
See Also