Gets the name of the encrypted file that triggered the RasterCodecs.DecryptPassword event.
public string FileName {get;} public:property String^ FileName{String^ get()}
FileName # get (CodecsDecryptPasswordEventArgs)
The name of the encrypted file. Note that the name might not be available if the source is a stream. The default value is null.
Refer to RasterCodecs.DecryptPassword for more information.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;using Leadtools.Svg;private static void DecryptPasswordExample(){/* This example loads an encrypted file using the Decrypt password event */using (RasterCodecs codecs = new RasterCodecs()){string srcFile = @"Encrypted.docx";// Create a DecryptPassword handlerEventHandler<CodecsDecryptPasswordEventArgs> decryptPasswordHandler = (sender, e) =>{/* You can also bring up a message box informing the user that the 'e.FileName' file is encrypted and needs a password */e.Password = "MyPassword";/* Or you can set 'e.Cancel = true' to cancel the load */};// Install the DecryptPassword event handlercodecs.DecryptPassword += decryptPasswordHandler;codecs.Options.Load.AllPages = true;using (RasterImage image = codecs.Load(srcFile)){/* check that the image is not null to make sure the operation was not cancelled */if (image != null)codecs.Save(image, srcFile + ".tif", RasterImageFormat.TifLzw, 0);}}}
RasterCodecs.DecryptPassword Event
CodecsDecryptPasswordEventArgs Class
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
