Class Palette
Palette extends the Diagram class to allow objects to be dragged and placed onto other Diagrams.
Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.WinForms.dll
Syntax
public class Palette : Diagram, IHasContextMenu, IHasToolTip
Remarks
Its Layout is a GridLayout. The Palette is IsReadOnly, but to support drag-and-drop, its AllowDragOut is true.
For more discussion, see Introduction to Palettes.
You can control the order of Parts in the palette in several manners:
- If you want to keep the order given by
myPalette.Model.NodeDataSource
, just setmyPalette.Layout.Sorting = GridSorting.Forwards
(Sorting) - If you want to sort based on some text string associated with each Part, just bind Text
- If you want to sort more generally, set
myPalette.Layout.Comparer
(Comparer)
Constructors
Palette()
Constructs a new Palette. You will not normally call this constructor.
Declaration
public Palette()