Click or drag to resize

ShellDataObjectFormat Class

Defines a Windows Shell Data Object format in the ShellBoost context. It also provides general purpose IDataObject utilities.
Inheritance Hierarchy
SystemObject
  callback.ShellBoost.CoreShellDataObjectFormat

Namespace:  callback.ShellBoost.Core
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public sealed class ShellDataObjectFormat

The ShellDataObjectFormat type exposes the following members.

Properties
  NameDescription
Public propertyConvertedData
Gets the typed data associated with this data. For array data (such as file contents corresponding to file descriptors), this will contain array of string (temporary files) or byte[]. Only supported if OnDemandDataFormat property value is null.
Public propertyData
Gets the data associated with this format. For array data (such as file contents corresponding to file descriptors), this will be null, use ConvertedData instead. Only supported if OnDemandDataFormat property value is null.
Public propertyFormat
Gets the format identifier.
Public propertyName
Gets the format name.
Public propertyOnDemandDataFormat
Gets the related OnDemandDataFormat instance. Only valid (not null) if a custom OnDemandDataObject instance was provided on OnGetOnDemandDataObjectEvent.
Top
Methods
  NameDescription
Public methodStatic memberBuildCF_HDROP
Builds CF_HDROP as an HGlobal handle.
Public methodStatic memberBuildCF_HDROPAsByteArray
Builds the CF_HDROP format as a byte array.
Public methodStatic memberBuildCFSTR_SHELLIDLIST
Builds the CFSTR_SHELLIDLIST format as an HGlobal handle.
Public methodStatic memberBuildCFSTR_SHELLIDLISTAsByteArray
Builds the CFSTR_SHELLIDLIST format as byte array.
Public methodStatic memberEnumerateFormats
Enumerates the formats from an IDataIObject.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberGetBytes(Object, Int32, NullableInt32, Boolean)
Gets bytes from an IDataObject.
Public methodStatic memberGetBytes(Object, String, NullableInt32, Boolean)
Gets bytes from an IDataObject.
Public methodStatic memberGetCF_HDROP
Gets the CF_HDROP format from an IDataObject.
Public methodStatic memberGetCFSTR_FILECONTENTS
Gets the CFSTR_FILEDESCRIPTOR and CFSTR_FILECONTENTS from an IDataObject.
Public methodStatic memberGetCFSTR_FILEDESCRIPTOR
Gets the CFSTR_FILEDESCRIPTOR format from an IDataObject.
Public methodStatic memberGetCFSTR_SHELLIDLIST(Object, Boolean)
Gets the CFSTR_SHELLIDLIST format from an IDataObject.
Public methodStatic memberGetCFSTR_SHELLIDLIST(Object, ShellItemIdList, Boolean)
Gets the CFSTR_SHELLIDLIST format from an IDataObject.
Public methodStatic memberGetClipboardFormatName
Retrieves from the clipboard the name of the specified registered format.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetNativeDataObject
Gets A native IDataObject from a .NET object.
Public methodStatic memberGetStream(Object, Int32, NullableInt32, Boolean, Boolean)
Gets a stream from an IDataObject.
Public methodStatic memberGetStream(Object, String, NullableInt32, Boolean, Boolean)
Gets a stream from an IDataObject.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParseCF_HDROPFormatData
Parses the CF_HDROP format.
Public methodStatic memberParseCFSTR_DROPDESCRIPTIONFormatData
Parses the CFSTR_DROPDESCRIPTION format.
Public methodStatic memberParseCFSTR_FILEDESCRIPTORFormatData
Parses the CFSTR_FILEDESCRIPTOR format.
Public methodStatic memberParseCFSTR_SHELLIDLISTFormatData(Byte, Boolean)
Parses the CFSTR_SHELLIDLIST (CIDA) format.
Public methodStatic memberParseCFSTR_SHELLIDLISTFormatData(Byte, ShellItemIdList, Boolean)
Parses the CFSTR_SHELLIDLIST (CIDA) format.
Public methodStatic memberParseCFSTR_SHELLIDLISTOFFSETFormatData
Parses the CFSTR_SHELLIDLISTOFFSET format.
Public methodStatic memberParseDataUsingKnownFormatsT
Try to parse a clipboard data using known formats.
Public methodStatic memberRegisterClipboardFormat
Registers a new clipboard format. This format can then be used as a valid clipboard format. If a registered format with the specified name already exists, a new format is not registered and the return value identifies the existing format.
Public methodStatic memberSetCF_HDROP
Sets the CF_HDROP format to an IDataObject.
Public methodStatic memberSetCFSTR_FILECONTENTS
Sets the CFSTR_FILEDESCRIPTOR and CFSTR_FILECONTENTS formats to an IDataObject. This method may not work completely with data object classes that don't fully implement the native COM IDataObject interface, such as Winforms or WPF ones. If you want to add multiple contents, use the ShellBoost data object created using ShellDataObject.CreateDataObject().
Public methodStatic memberSetCFSTR_SHELLIDLIST
Sets the CFSTR_SHELLIDLIST format to an IDataObject.
Public methodStatic memberSetHGlobalFormat(Object, Int32, Byte, Int32, DVASPECT, Boolean)
Sets a format to an IDataObject using an array of bytes.
Public methodStatic memberSetHGlobalFormat(Object, Int32, IntPtr, Int32, DVASPECT, Boolean)
Sets a format to an IDataObject using a HGLOBAL object.
Public methodStatic memberSetHGlobalFormat(Object, String, Byte, Int32, DVASPECT, Boolean)
Sets a format to an IDataObject using an array of bytes.
Public methodStatic memberSetHGlobalFormat(Object, String, IntPtr, Int32, DVASPECT, Boolean)
Sets a format to an IDataObject using a HGLOBAL object.
Public methodStatic memberSetHGlobalFormat(Object, Int32, String, Encoding, Int32, DVASPECT, Boolean)
Sets a format to an IDataObject using a string.
Public methodStatic memberSetHGlobalFormat(Object, String, String, Encoding, Int32, DVASPECT, Boolean)
Sets a format to an IDataObject using a string.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodStatic memberTryParseDataUsingKnownFormats(String, Byte, Object)
Try to parse a clipboard data using known formats.
Public methodStatic memberTryParseDataUsingKnownFormats(String, Object, Object)
Try to parse a clipboard data using known formats.
Public methodStatic memberTryParseDataUsingKnownFormatsT(String, Object, T)
Try to parse a clipboard data using known formats.
Top
Fields
  NameDescription
Public fieldStatic memberCF_BITMAP
The CF_BITMAP (2) format.
Public fieldStatic memberCF_HDROP
The CF_HDROP (15) format.
Public fieldStatic memberCF_RTF
The CF_RTF ('Rich Text Format') format.
Public fieldStatic memberCF_TEXT
The CF_TEXT (1) format.
Public fieldStatic memberCF_UNICODETEXT
The CF_UNICODETEXT (13) format.
Public fieldStatic memberCFSTR_DROPDESCRIPTION
The CFSTR_DROPDESCRIPTION ('DropDescription') format.
Public fieldStatic memberCFSTR_FILECONTENTS
The CFSTR_FILECONTENTS ('FileContents') format. Note in the case of ShellBoost, this format's data does not contains the same data as expected. Instead, the data is an enumerable of temporary files that can be moved wherever you want.
Public fieldStatic memberCFSTR_FILEDESCRIPTORW
The CFSTR_FILEDESCRIPTOR ('FileGroupDescriptorW') format.
Public fieldStatic memberCFSTR_FILENAMEW
The CFSTR_FILENAME ('FileNameW') format.
Public fieldStatic memberCFSTR_INDRAGLOOP
The CFSTR_INDRAGLOOP ('InShellDragLoop') format.
Public fieldStatic memberCFSTR_INETURL
The CFSTR_INETURLW ('UniformResourceLocatorW') format.
Public fieldStatic memberCFSTR_INVOKECOMMAND_DROPPARAM
The CFSTR_INVOKECOMMAND_DROPPARAM ('InvokeCommand DropParam') format.
Public fieldStatic memberCFSTR_LOGICALPERFORMEDDROPEFFECT
The CFSTR_LOGICALPERFORMEDDROPEFFECT ('Logical Performed DropEffect') format.
Public fieldStatic memberCFSTR_PASTESUCCEEDED
The CFSTR_PASTESUCCEEDED ('Paste Succeeded') format.
Public fieldStatic memberCFSTR_PERFORMEDDROPEFFECT
The CFSTR_PERFORMEDDROPEFFECT ('Performed DropEffect') format.
Public fieldStatic memberCFSTR_PREFERREDDROPEFFECT
The CFSTR_PREFERREDDROPEFFECT ('Preferred DropEffect') format.
Public fieldStatic memberCFSTR_SHELLDROPHANDLER
The CFSTR_SHELLDROPHANDLER ('DropHandlerCLSID') format.
Public fieldStatic memberCFSTR_SHELLIDLIST
The CFSTR_SHELLIDLIST ('Shell IDList Array') format.
Public fieldStatic memberCFSTR_SHELLIDLISTOFFSET
The CFSTR_SHELLIDLISTOFFSET ('Shell Object Offsets') format.
Public fieldStatic memberCFSTR_TARGETCLSID
The CFSTR_TARGETCLSID ('TargetCLSID') format.
Top
See Also