SymbolPalette
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
The Palette shows a set of nodes and connectors. It allows you to drag and drop the nodes and connectors into the Diagram.
- C#
- VB.NET
public class SymbolPalette : ej2Base
Public Class SymbolPalette
Inherits ej2Base
Constructors
SymbolPalette()
Constructs a new instance of the SymbolPalette class.
Example:
The following example creates a symbol palette with a group of basic shapes, configured through the Options object.
var symbolPalette = new SymbolPalette();
symbolPalette.Options.palettes = new[]
{
new
{
id = "basic",
title = "Basic Shapes",
symbols = new[]
{
new { id = "rectangle", shape = new { type = "Basic", shape = "Rectangle" } },
new { id = "ellipse", shape = new { type = "Basic", shape = "Ellipse" } }
}
}
};
symbolPalette.Dock = DockStyle.Left;
this.Controls.Add(symbolPalette);
SymbolPalette(options)
Constructs a new instance of the SymbolPalette class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a symbol palette with two groups of flow shapes and larger symbols, where more than one group can be expanded at the same time.
var symbolPalette = new SymbolPalette(new
{
expandMode = "Multiple",
symbolWidth = 60,
symbolHeight = 60,
palettes = new[]
{
new
{
id = "flow",
title = "Flow Shapes",
expanded = true,
symbols = new[]
{
new { id = "process", shape = new { type = "Flow", shape = "Process" } },
new { id = "decision", shape = new { type = "Flow", shape = "Decision" } }
}
},
new
{
id = "terminators",
title = "Terminators",
expanded = false,
symbols = new[]
{
new { id = "terminator", shape = new { type = "Flow", shape = "Terminator" } }
}
}
}
});
symbolPalette.Dock = DockStyle.Left;
this.Controls.Add(symbolPalette);