Skip to main content
A newer version of this page is available. .

DiagramCustomShape.BaseType Property

Specifies the base shape type for the custom shape.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DiagramShapeType.Unset)]
public DiagramShapeType BaseType { get; set; }

Property Value

Type Default Description
DiagramShapeType **Unset**

The type of the base shape.

Available values:

Show 44 items
Name Description
Unset

The shape type is not set.

Text

Text

Rectangle

Diagram Shape Type

Ellipse

Diagram Shape Type

Cross

Diagram Shape Type

Triangle

Diagram Shape Type

Diamond

Diagram Shape Type

Heart

Diagram Shape Type

Pentagon

Diagram Shape Type

Hexagon

Diagram Shape Type

Octagon

Diagram Shape Type

Star

Diagram Shape Type

ArrowLeft

Diagram Shape Type

ArrowTop

Diagram Shape Type

ArrowRight

Diagram Shape Type

ArrowBottom

Diagram Shape Type

ArrowNorthSouth

Diagram Shape Type

ArrowEastWest

Diagram Shape Type

Process

Diagram Shape Type

Decision

Diagram Shape Type

Terminator

Diagram Shape Type

PredefinedProcess

Diagram Shape Type

Document

Diagram Shape Type

MultipleDocuments

Diagram Shape Type

ManualInput

Diagram Shape Type

Preparation

Diagram Shape Type

Data

Diagram Shape Type

Database

Diagram Shape Type

HardDisk

Diagram Shape Type

InternalStorage

Diagram Shape Type

PaperTape

Diagram Shape Type

ManualOperation

Diagram Shape Type

Delay

Diagram Shape Type

StoredData

Diagram Shape Type

Display

Diagram Shape Type

Merge

Diagram Shape Type

Connector

Diagram Shape Type

Or

Diagram Shape Type

SummingJunction

Diagram Shape Type

VerticalContainer

Diagram Shape Type

HorizontalContainer

Diagram Shape Type

CardWithImageOnLeft

Diagram Shape Type

CardWithImageOnTop

Diagram Shape Type

CardWithImageOnRight

Diagram Shape Type

Remarks

A custom shape can be created based on a default shape type or with a custom background image. Use the BaseType property to specify a base type for a shape.

Note, the Type property identifies custom shapes, therefore it must be specified and unique.

protected void Page_Load(object sender, EventArgs e) {
    if (!IsPostBack) {
        Diagram.Import(File.ReadAllText(MapPath("~/App_Data/diagram-employees.json")));
        Diagram.CustomShapes.AddRange(GetEmployeesShapes());
    }
}
static IEnumerable<DiagramCustomShape> GetEmployeesShapes() {
    return CompanyEmployeesDataProvider.GetCompanyEmployees().Select(e => new DiagramCustomShape {
        Type = "emp" + e.EmployeeID,
        BaseType = DiagramShapeType.Rectangle,
        DefaultText = e.FirstName + " " + e.LastName,
        Category = "CategoryEmployees"
    });
}

Run Demo: Shapes with Base Type

See Also