Click or drag to resize

GetDataObjectEventArgs Class

Provides data for the GetDataObject event of the ShellFolder type. A completely custom Data Object will be created if the AddDataObject method has been called at least once.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ShellBoost.CoreGetDataObjectEventArgs

Namespace:  ShellBoost.Core
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public sealed class GetDataObjectEventArgs : EventArgs, 
	IDataObjectFormats

The GetDataObjectEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyDataObjects
Gets the data objects PIDLs.
Public propertyDontUseDefaultDataObjects
Gets or sets a value indicating whether to use default data objects, event if no object is added to this instance. Setting this to true will prevent any drag operation.
Public propertyFolder
Gets the opened Shell Folder instance.
Public propertyFormats
Gets the optional formats.
Public propertyHwnd
Gets the owner window handle. May be IntPtr.Zero depending on context.
Public propertyItems
Gets the context shell items.
Top
Methods
  NameDescription
Public methodAddDataObject(IWithIdList)
Adds a data object to the list. All PIDLs added to the collection must share the same parent PIDL. The first PIDL added will determine the common parent PIDL. If the first PIDL added has no parent, nothing will be added.
Public methodAddDataObject(ShellItemIdList)
Adds a data object to the list using its PIDL. All PIDLs added to the collection must share the same parent PIDL. The first PIDL added will determine the common parent PIDL. If the first PIDL added has no parent, nothing will be added.
Public methodAddDataObjects
Adds a list of data objects to the list. All PIDLs added to the collection must share the same parent PIDL. The first PIDL added will determine the common parent PIDL. If the first PIDL added has no parent, nothing will be added.
Top
Extension Methods
  NameDescription
Public Extension MethodAddCF_HDROP
Adds a CF_HDROP format to the data object.
(Defined by Extensions.)
Public Extension MethodAddCFSTR_SHELLIDLIST
Adds a CFSTR_SHELLIDLIST format to the data object.
(Defined by Extensions.)
Public Extension MethodAddFormat(Int32, Byte)Overloaded.
Adds a format to the data object. This format will be used only if at least one DataObject is added.
(Defined by Extensions.)
Public Extension MethodAddFormat(String, Byte)Overloaded.
Adds a format to the data object. This format will be used only if at least one DataObject is added.
(Defined by Extensions.)
Public Extension MethodAddFormat(Int32, String, Encoding)Overloaded.
Adds a text to the data object. This format will be used only if at least one DataObject is added.
(Defined by Extensions.)
Public Extension MethodAddFormat(String, String, Encoding)Overloaded.
Adds a format to the data object. This format will be used only if at least one DataObject is added.
(Defined by Extensions.)
Top
See Also