Class
DiagramShapeEditableDescriptor

Controls which aspects of a diagram shape users can edit interactively. Use this to enable or disable editing of shape position, size, rotation, content, connectors, and other properties. Allows granular control over user interaction capabilities, such as dragging, resizing, rotating, or connecting shapes.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class DiagramShapeEditableDescriptor : DataVizChildComponentDescriptor

Inheritance: objectDataVizChildComponentDescriptorDiagramShapeEditableDescriptor

Constructors

DiagramShapeEditableDescriptor()

Declaration

cs-api-definition
public DiagramShapeEditableDescriptor()

Properties

Connect

Controls whether connection points (connectors) appear when hovering over the shape. When set to false, users cannot create new connections from this shape or modify existing connection endpoints. Set to false for shapes that should not participate in connections, such as decorative elements or labels.

Declaration

cs-api-definition
public bool? Connect { get; set; }

Property Value

bool?

Drag

Controls whether users can drag the shape to reposition it within the diagram. When set to false, the shape remains fixed at its current position. Set to false for anchor shapes or background elements that should maintain their position.

Declaration

cs-api-definition
public bool? Drag { get; set; }

Property Value

bool?

Enabled

Enables or disables all editing interactions for the shape. When set to false, the shape becomes read-only and users cannot drag, connect, or remove it. Individual editing features can be controlled more granularly using Connect, Drag, and Remove properties.

Declaration

cs-api-definition
public bool? Enabled { get; set; }

Property Value

bool?

Remove

Controls whether users can delete the shape from the diagram. When set to false, the shape cannot be removed using the Delete key or context menu. Set to false for essential shapes that must remain in the diagram.

Declaration

cs-api-definition
public bool? Remove { get; set; }

Property Value

bool?

Methods

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>