Udostępnij za pośrednictwem


DragDropHelper.GetStringFromDataObject(IDataObject) Method

Definition

Try to extract a string from the given IDataObject. Returns the string if the data object contains one of the recognized strings data formats, otherwise returns null.

public:
 static System::String ^ GetStringFromDataObject(System::Windows::IDataObject ^ source);
public static string GetStringFromDataObject (System.Windows.IDataObject source);
static member GetStringFromDataObject : System.Windows.IDataObject -> string
Public Shared Function GetStringFromDataObject (source As IDataObject) As String

Parameters

source
IDataObject

The data object.

Returns

Returns the string if the data object contains one of the recognized strings data formats, otherwise returns null.

Applies to