GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPalette Class
Members
In This Topic
    GoPalette Class
    In This Topic
    A palette is a view holding a number of objects in a grid that the user can drag into another document.
    Syntax
    [ToolboxItem(true)]
    [ToolboxBitmap(Northwoods.Go.GoPalette, "Northwoods.Go.GoPalette.bmp")]
    [DefaultProperty("Text")]
    [DefaultEvent("Click")]
    [Designer("System.Windows.Forms.Design.ControlDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [ToolboxItemFilter("System.Windows.Forms")]
    [DesignerCategory("Component")]
    public class GoPalette : GoView, IGoLayerAbilities, IGoLayerCollectionContainer  
    Remarks

    The spacing and positioning of the items is controlled by the GoView.Grid.GoView.GridCellSizeWidth and GoView.GridCellSizeHeight control the spacing between items--smaller values will allow the objects to be placed closer together without overlapping, but will increase the likelihood of unaligned columns (or rows) if the objects have different sizes. GoView.GridOriginX and GoView.GridOriginY control the amount of "margin" space at the top and left of the view. However, if AlignsSelectionObject is true and the selection objects tend to be smaller than the items, this margin should be larger to accomodate those wider item parts (unless you want to allow them to be clipped).

    You can control whether the objects are sorted, and in what order they are sorted, by setting the Sorting property. You can control the way the objects are laid out in a grid, with the scrollbar (if needed) either vertical or horizontal, by setting the Orientation property. Because LayoutItems is designed to take this view's scale and size into accout, this class is not designed to share its document with other views.

    Palettes do not support sheets or GoView.SheetStyle. Since users are not expected to move or resize any of the objects, the grid GoView.GridSnapDrag and GoView.GridSnapResize behavior is ignored.

    See Also