Skip to main content
A newer version of this page is available. .
All docs
V20.2

DiagramEditOperation.ResizeShape Property

Identifies the ResizeShape operation.

Declaration

static readonly ResizeShape: string

Property Value

Type Description
string

Returns “ResizeShape”.

Remarks

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