View2.SwitchView(String) Method
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.
Changes the active view of a Microsoft InfoPath form to a specified view.
public:
void SwitchView(System::String ^ bstrName);
public void SwitchView (string bstrName);
abstract member SwitchView : string -> unit
Public Sub SwitchView (bstrName As String)
Parameters
- bstrName
- String
The name of the view to switch to. If an empty string is used, the default view is displayed.
Implements
Examples
In the following example, the SwitchView method of the ViewObject object is used to change the current view to the default view:
thisXDocument.View.<span class="label">SwitchView</span>("");
Remarks
If an empty string is used as the bstrName
parameter, the view is changed to the default view of the form.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin