Class Palette

GoDiagram®
v10.0.11
by Northwoods Software®

Palette extends the Diagram class to allow objects to be dragged and placed onto other Diagrams.

Inheritance
Palette
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 set myPalette.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()

Implements