Skip to main content
All docs

DiagramEditOperation.ResizeShape Property

Identifies the ResizeShape operation.


static readonly ResizeShape: string

Property Value

Type Description

Returns “ResizeShape”.


The operation parameter returns the ResizeShape value if the RequestEditOperation event fired because a user resized a shape.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
    <ClientSideEvents RequestEditOperation="onRequestEditOperation" />
function onRequestEditOperation(s, e) {
    if(e.operation === DiagramEditOperation.ResizeShape) {
        if(e.args.newSize.width < 1 || e.args.newSize.height < 0.75) {
            if(e.reason !== DiagramRequestEditOperationReason.CheckUIElementAvailability)
                showWarning("The shape size is too small.");
            e.allowed = false;

The RequestEditOperation event does not fire for the ResizeShape operation if the AllowResizeShape property is set to false.

See Also