New to Telerik UI for WinForms? Start a free 30-day trial

Provides data for the event that occurs when an image has been loaded into a PictureBox control.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PictureBoxImageLoadedEventArgs : EventArgs

Inheritance: objectEventArgsPictureBoxImageLoadedEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the PictureBoxImageLoadedEventArgs class.

C#
public PictureBoxImageLoadedEventArgs(ImageKind imagekind, LoadImageContext loadContext, string filePath = null)
Parameters:imagekindImageKind

The raster or vector kind of the loaded image.

loadContextLoadImageContext

Whether the image was loaded from a file or pasted from the clipboard.

filePathstring

The source file path, when available; clipboard loads do not provide one.

Properties

Gets the file path from which the image is loaded. This property is valid only when the LoadContext is set to File. Otherwise, it will be null.

C#
public string FilePath { get; }

Gets the image type that was loaded.

C#
public ImageKind ImageKind { get; }

Gets the context source used during the image loading operation.

C#
public LoadImageContext LoadContext { get; }