Table of Contents

Class Palette

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

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

public class Palette : Diagram, IHasContextMenu, IHasToolTip
Inheritance
Palette
Implements
Inherited Members

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.

public Palette()