ProtectedViewWindows.Open Method
Open and return a ProtectedViewWindow object from the ProtectedViewWindows collection.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function Open ( _
FileName As String, _
ReadPassword As String, _
OpenAndRepair As MsoTriState _
) As ProtectedViewWindow
'Usage
Dim instance As ProtectedViewWindows
Dim FileName As String
Dim ReadPassword As String
Dim OpenAndRepair As MsoTriState
Dim returnValue As ProtectedViewWindow
returnValue = instance.Open(FileName, _
ReadPassword, OpenAndRepair)
ProtectedViewWindow Open(
string FileName,
string ReadPassword,
MsoTriState OpenAndRepair
)
Parameters
- FileName
Type: System.String
The name of the file to open.
- ReadPassword
Type: System.String
The password to use for the protected file.
- OpenAndRepair
Type: Microsoft.Office.Core.MsoTriState
Indicates whether to repair the file.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.ProtectedViewWindow