RadDiagramToolbox
Represents a toolbox control that provides a collection of diagram shapes and tools for creating diagram elements through drag-and-drop operations.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
[TelerikToolboxCategory("Diagram")]
public class RadDiagramToolbox : RadListView, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IFilterable
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadListViewRadDiagramToolbox...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadDiagramToolbox class with default settings and predefined diagram shapes.
public RadDiagramToolbox()
Properties
Gets or sets a value indicating whether drag-and-drop operations are enabled for reordering diagram shapes within the toolbox.
[Browsable(true)]
public override bool AllowDragDrop { get; set; }
Overrides:
Gets or sets a value indicating whether the toolbox can accept diagram shapes that are dragged onto it from external sources.
public override bool AllowDrop { get; set; }
Overrides:
Returns: true if drag-and-drop operations are allowed in the control; otherwise, false. The default is false.
Gets or sets a value indicating whether editing of diagram shape items in the toolbox is enabled.
[Browsable(true)]
public override bool AllowEdit { get; set; }
Overrides:
Gets the default size of the diagram toolbox control.
protected override Size DefaultSize { get; }
Overrides:
Gets or sets a value indicating whether custom grouping of diagram shapes is enabled in the toolbox.
[Browsable(true)]
public override bool EnableCustomGrouping { get; set; }
Overrides:
Gets or sets a value indicating whether the full row of diagram shape items should be selected in the toolbox.
[Browsable(true)]
public override bool FullRowSelect { get; set; }
Overrides:
Gets or sets the indentation of diagram shape items when they are displayed within groups in the toolbox.
[Browsable(true)]
public override int GroupIndent { get; set; }
Overrides:
This property is not relevant for this class.
[Browsable(false)]
public override ListViewDataItemGroupCollection Groups { get; }
Overrides:
This property is not relevant for this class.
[Browsable(false)]
public ListViewDataItemCollection Items { get; }
Gets or sets the default size for diagram shape items displayed in the toolbox.
[Browsable(true)]
public override Size ItemSize { get; set; }
Overrides:
Gets or sets the spacing between diagram shape items in the toolbox layout.
[Browsable(true)]
public override int ItemSpacing { get; set; }
Overrides:
Gets or sets a value indicating whether diagram shape items should be organized and displayed in groups within the toolbox.
[Browsable(true)]
public override bool ShowGroups { get; set; }
Overrides:
Gets the theme class name for the toolbox control.
public override string ThemeClassName { get; }
Overrides:
Gets or sets the visual representation type for displaying diagram shapes in the toolbox.
[Browsable(true)]
public override ListViewType ViewType { get; set; }
Overrides:
Methods
Creates and initializes the default collection of diagram shape items organized into predefined groups for the toolbox.
protected virtual void CreateDataItems()
Creates a diagram shape instance based on the drag start event arguments for drag-and-drop operations.
protected virtual RadDiagramShape CreateDiagramShape(PreviewDragStartEventArgs e)
The preview drag start event arguments containing information about the dragged item.
Returns:A RadDiagramShape instance or null if no shape should be created.
Handles the preview drag drop event to finalize the creation and placement of diagram shapes onto the target diagram.
protected virtual void DragDropService_PreviewDragDrop(object sender, RadDropEventArgs e)
The source of the event.
eRadDropEventArgsThe drop event arguments containing drop location and target information.
Handles the preview drag over event to determine whether the current drag target can accept the dragged diagram shape.
protected virtual void DragDropService_PreviewDragOver(object sender, RadDragOverEventArgs e)
The source of the event.
eRadDragOverEventArgsThe drag over event arguments containing hit target and drag operation information.
Handles the preview drag start event to initiate drag-and-drop operations for diagram shapes from the toolbox.
protected virtual void DragDropService_PreviewDragStart(object sender, PreviewDragStartEventArgs e)
The source of the event.
ePreviewDragStartEventArgsThe preview drag start event arguments containing drag operation details.
Performs the core logic for processing drag-and-drop operations when dragging diagram shapes from the toolbox.
protected virtual void PreviewDragDropCore(PreviewDragStartEventArgs e)
The preview drag start event arguments containing information about the dragged shape.
Handles the visual item creation event to customize the appearance of diagram shape items in the toolbox.
protected virtual void RadDiagramToolbox_VisualItemCreating(object sender, ListViewVisualItemCreatingEventArgs e)
The source of the event.
eListViewVisualItemCreatingEventArgsThe event arguments containing visual item creation information.