Specifies the password when the document is restricted with access permissions. If the password is valid, the document is not restricted after loading. If the password is invalid or not specified, the access permissions are given through the LoadSettings.DocumentAccessPermissions property.

Introduced: X14.


public string MasterPassword { get; set; }
Public Property MasterPassword() As String


This example shows a simple variant of how to use the 'TXTextControl.LoadSettings.MasterPassword' property. Here, it is set to an imaginary password of "12345".

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
ls.MasterPassword = "12345";
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
ls.MasterPassword = "12345"


DOC, DOCX, RTF, PDF and TextControl format only.