[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.IsEncryptedFile

IsEncryptedFile Method

IsEncryptedFile(string)

Specifies whether the file is password protected.

Declaration
bool IsEncryptedFile(string fileName)
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.

IsEncryptedFile(Stream)

Specifies whether the file is password protected.

Declaration
bool IsEncryptedFile(Stream fileStream)
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.