Public Function View(ByVal FilePath As String) As String Implements Plugins.IPlugin.View
' Necessary attribute
Me.Dock = DockStyle.Fill
Using fs As New FileStream(FilePath, FileMode.Open, FileAccess.Read, FileShare.Read)
Using sr As New StreamReader(fs)
Dim s As String = sr.ReadToEnd
TextBox1.MaxLength = s.Length
TextBox1.Text = s
End Using
End Using
' Return file properties to string
Return ""
End Function
Public ReadOnly Property PluginName() As String Implements Plugins.IPlugin.PluginName
Get
Return "Text viewer plugin"
End Get
End Property
Public Function Thumb(ByVal FilePath As String, ByVal Width As Integer, ByVal Height As Integer) As System.Drawing.Image Implements Plugins.IPlugin.Thumb
' Return Thumbnails Image or Nothing
Return Nothing
End Function
Public ReadOnly Property Vendor() As String Implements Plugins.IPlugin.Vendor
Get
Return "RIA-Media"
End Get
End Property
Public ReadOnly Property Version() As String Implements Plugins.IPlugin.Version