Edit

Share via


XmlForm.ReadOnly Property

Definition

Gets a value that indicates whether a form template is read-only or locked.

public:
 abstract property bool ReadOnly { bool get(); };
public abstract bool ReadOnly { get; }
member this.ReadOnly : bool
Public MustOverride ReadOnly Property ReadOnly As Boolean

Property Value

true if the form template is read-only or locked; otherwise false.

Remarks

If the ReadOnly property is true, the form template has been placed in a read-only or locked state. Changes can still be made to the form template, but it cannot be saved to the same name using a Save() operation; it must be saved to a new name using a SaveAs(String) operation.

To determine whether the form's underlying XML document has been placed in a read-only state, use the ReadOnly property of the DataSource class. To access the ReadOnly property for the current form, you can use the MainDataSource property to access an instance of the DataSource class that represents the current form's underlying XML document.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

Applies to