Class PreviewTextFile
Implements preview control which uses MultilineTextBox for the preview of the files.
public class PreviewTextFile : Control, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, IFilePreview
- Inheritance
-
PreviewTextFile
- Implements
Constructors
- PreviewTextFile()
Initializes a new instance of the PreviewTextFile class.
Fields
- DefaultOtherEncoding
Gets or sets default encoding for the all files except "txt".
- DefaultTextEncoding
Gets or sets default encoding for the "txt" files.
- SupportedExtensions
Gets or sets list of file extension which are supported in PreviewTextFile.
Properties
- FileName
Gets or sets path to the previewed file.
Methods
- CreatePreviewControl()
Creates this preview control.
- IsSupportedFile(string)
Gets whether specified file is supported in this preview control.
- Reload()
Reloads the file which is currently previewed.
Events
- QueryEncoding
Occurs when preview control needs to get encoding for the previewed file.