A list view control that hosts DiagramItems and supports drag-and-drop to DiagramView.
Namespace: MindFusion.Diagramming.Blazor
Assembly: MindFusion.Diagramming.Blazor
SyntaxC#
Copy Code
|
|---|
public class ItemListView : ComponentBase |
Visual Basic
Copy Code
|
|---|
Public Class ItemListView |
RemarksCall the AddItem method to add an item to the view.
Drag-and-drop operations create a copy of the dragged item, and set its size to NewInstanceSize. The copy is created by calling item's Clone method. You can override clone to copy property values of custom item subclasses.
Icons in the list are drawn by scaling NewInstanceSize down to IconSize. E.g. if a list icon is half the size of the diagram item it creates, its graphic elements such as cells, labels, strokes would be rendered at half scale too (as opposed to rendering with same label / stroke sizes but in smaller bounding rectangle). The scaling code assumes MeasureUnit of the target diagram and the list view have matching values.
Inheritance HierarchySystem.Object![]()
Microsoft.AspNetCore.Components.ComponentBase![]()
MindFusion.Diagramming.Blazor.ItemListView
See Also