Gets the name and path of the file that has been loaded.

Syntax

public string LoadedFile { get; }
Public ReadOnly Property LoadedFile() As String

Examples

The following example uses the 'LoadedFile' property to get the name and path of the file that has been loaded.

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();

if (textControl1.Load(TXTextControl.StreamType.All, ls) == DialogResult.OK)
{
  MessageBox.Show(ls.LoadedFile + " has been loaded. " + ls.BytesRead.ToString() + " bytes read.");
}
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()

If TextControl1.Load(TXTextControl.StreamType.All, ls) = DialogResult.OK Then
    MessageBox.Show(ls.LoadedFile + " has been loaded. " + ls.BytesRead.ToString() + " bytes read.")
End If

Limitations

Read only.