All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramCustomShape.BaseType Property

Specifies the base shape type for the custom shape.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(DiagramShapeType.Unset)]
public DiagramShapeType BaseType { get; set; }
<DefaultValue(DiagramShapeType.Unset)>
Public Property BaseType As DiagramShapeType

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