Class PreviewFile
Allows to preview the file using one of the registered preview controls.
public class PreviewFile : Control, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, IFilePreview
- Inheritance
-
PreviewFile
- Implements
Constructors
- PreviewFile()
Initializes a new instance of the PreviewFile class.
Properties
- FileName
Gets or sets path to the file which will be previewed in the control.
- RegisteredItems
Gets list of registered preview controls. One of these controls will be used to preview the file.
Methods
- GetItem(string?)
Gets registered item for the specified file.
- RegisterDefaultPreviewControls()
Registers default preview controls for use with this object.
- RegisterPreview(PreviewFileRegisterItem)
Registeres preview control for use with this object.
- Reload()
Reloads current previewed file.
- Reset()
Resets preview control unloading any data.
- ShowLabel(string)
Shows custom text.
- ShowNoFile()
Shows text "Select a file to preview".
- ShowNoPreview()
Shows text "No preview available".