View.ViewInfo Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a reference to a ViewInfo object associated with the view.
public:
abstract property Microsoft::Office::InfoPath::ViewInfo ^ ViewInfo { Microsoft::Office::InfoPath::ViewInfo ^ get(); };
public abstract Microsoft.Office.InfoPath.ViewInfo ViewInfo { get; }
member this.ViewInfo : Microsoft.Office.InfoPath.ViewInfo
Public MustOverride ReadOnly Property ViewInfo As ViewInfo
Property Value
A ViewInfo associated with the current view.
Examples
The following example uses the ViewInfo property of the View class to get the name for the current view.
string myViewName = this.CurrentView.ViewInfo.Name;
Dim myViewName As String = Me.CurrentView.ViewInfo.Name
Remarks
The ViewInfo object provides properties that can be used to get the name of a view and determine whether its name is hidden on the View menu.
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.