Skip to main content
All docs
V25.1
  • DiagramEditOperation.MoveShape Property

    Identifies the MoveShape operation.

    Declaration

    static readonly MoveShape: string

    Property Value

    Type Description
    string

    Returns “MoveShape”.

    Remarks

    The operation parameter returns the MoveShape value if the RequestEditOperation event fired because a user moved a shape.

    <dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
        <ClientSideEvents RequestEditOperation="onRequestEditOperation" />
        ...
    
    function onRequestEditOperation(s, e) {
        if(e.operation === DiagramEditOperation.MoveShape) {
            if(e.args.shape.type === "root") {
                showWarning("You cannot move the 'Development' shape.");
                e.allowed = false;
            }
        }
        ...
    }
    

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

    See Also