DataTransferService
Default implementation of the IDataTransferService.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class DataTransferService : IDataTransferService
Inheritance: objectDataTransferService
Implements:
Constructors
Initializes a new instance of the DataTransferService class.
public DataTransferService(IGraphInternal graph)
The diagram control.
Properties
SupportedImageFileExtensions
IEnumerable<string>
Gets the supported image file extensions when an image is taken from the clipboard or dragdropped onto the diagram.
public static IEnumerable<string> SupportedImageFileExtensions { get; }
Methods
Handles the transfer of data when there is a dragdrop action. This can be both an internal dragdrop (from one control to another within the same application) as well as an external dragdrop (from one application to another or from the file system to an application).
public virtual void HandleDrop(DataObject dataObject, Action<DataTransferResult> fileDropAction, Action<DataTransferResult> elementDropAction)
The data object being transferred.
fileDropActionAction<DataTransferResult>The file drop action which will handle the result of the external data transfer.
elementDropActionAction<DataTransferResult>The element drop action which will handle the result of the internal data transfer.
Implements:
Handles the transfer of data when a copy-paste or cut-paste was performed.
public virtual void HandlePaste(DataObject dataObject, Action<DataTransferResult> action)
The data object being transferred.
actionAction<DataTransferResult>The action which will handle the result of the clipboard data transfer.
Implements:
Attempts to fetch the "SerializationInfo" from the Windows.DragDrop.DragEventArgs.Data.
public bool TryGetDiagramSerializationInfo(DataObject dataObject, ref SerializationInfo serializationInfo)
The data object.
serializationInfoSerializationInfoThe serialization info.
Returns:Attempts to fetch the "SerializationInfo" from the "Windows.DragDrop.DragEventArgs.Data".
public bool TryGetDiagramSerializationInfo(DragEventArgs args, ref SerializationInfo serializationInfo)
The instance containing the event data.
serializationInfoSerializationInfoThe serialization info.
Returns:Attempts to fetch the SerializationInfo from the string which supposedly contains a serialized diagram as XML.
public bool TryGetDiagramSerializationInfo(string diagramXML, ref SerializationInfo serializationInfo)
The diagram XML.
serializationInfoSerializationInfoThe serialization info.
Returns:Implements: