Show / Hide Table of Contents

Class FileDropEventArgs

This event is triggered when a user drags files into a window.

Inheritance
object
EventArgs
WindowEventArgs
FileDropEventArgs
Inherited Members
WindowEventArgs.Window
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class FileDropEventArgs : WindowEventArgs

Constructors

FileDropEventArgs(WindowHandle, IReadOnlyList<string>, Vector2i)

Initializes a new instance of the FileDropEventArgs class.

Declaration
public FileDropEventArgs(WindowHandle window, IReadOnlyList<string> filePaths, Vector2i position)
Parameters
Type Name Description
WindowHandle window

The window where files where drag-and-dropped in.

IReadOnlyList<string> filePaths

A list of files to the files dropped.

Vector2i position

The position in the window where the files where dropped.

Properties

FilePaths

A list of file paths that represent the files the user dragged into the window.

Declaration
public IReadOnlyList<string> FilePaths { get; }
Property Value
Type Description
IReadOnlyList<string>

Position

The position within the window that the user dropped the files.

Declaration
public Vector2i Position { get; }
Property Value
Type Description
Vector2i
In this article
Back to top Generated by DocFX