Gets the document's author. It is an empty string, if there is no author saved in the loaded document.

Introduced: X13.

Syntax

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

Examples

The following example shows how to use the LoadSettings to get the author name of a loaded document.

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
string lsAuthor = ls.Author; 

if (textControl1.Load(TXTextControl.StreamType.All, ls) == System.Windows.Forms.DialogResult.OK) {
        System.Windows.Forms.MessageBox.Show(ls.LoadedFile + " has been loaded. " + ls.BytesRead.ToString() + " bytes read." + lsAuthor + " is the author");
        }
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
Dim lsAuthor As String = ls.Author

If TextControl1.Load(TXTextControl.StreamType.All, ls) = System.Windows.Forms.DialogResult.OK Then
    System.Windows.Forms.MessageBox.Show(ls.LoadedFile & " has been loaded. " + ls.BytesRead.ToString() & " bytes read." & lsAuthor & " is the author")
End If

Limitations

Read only.