[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.IsEncryptedFile

IsEncryptedFile Method

IsEncryptedFile(Stream)

Specifies whether the file is password protected.

Declaration
public bool IsEncryptedFile(Stream fileStream)
Public Function IsEncryptedFile(fileStream As Stream) As Boolean
Parameters
Type Name Description
Stream fileStream

The file stream.

Returns
Type Description
bool

True if the file is encrypted, false otherwise.

Implements

IsEncryptedFile(string)

Specifies whether the file is password protected.

Declaration
public bool IsEncryptedFile(string fileName)
Public Function IsEncryptedFile(fileName As String) As Boolean
Parameters
Type Name Description
string fileName

The file name.

Returns
Type Description
bool

True if the file is encrypted, false otherwise.

Implements