Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ViewInfoCollection.Initial property

Gets or sets the ViewInfo object that represents the initial view of the form.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract ViewInfo Initial { get; set; }

Property value

Type: Microsoft.Office.InfoPath.ViewInfo
The ViewInfo object that represents the initial view of the form.

ExceptionCondition
ArgumentException

The specified ViewInfo object doesn't exist.

The ViewInfo object that is returned or set by the Initial property is specified by the value of the InitialView attribute in the processing instructions of the underlying XML document of the form. The value can be set to a valid view and is saved when the form is saved.

This member can be accessed without restrictions.

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

To see an example that uses the Initial property, see the SwitchView(ViewInfo) method topic.

Show:
© 2015 Microsoft