New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DiagramEditableDragSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DiagramEditableDragSettingsBuilder method.

C#
public DiagramEditableDragSettingsBuilder(DiagramEditableDragSettings<TShapeModel, TConnectionModel> container)
Parameters:containerDiagramEditableDragSettings<TShapeModel, TConnectionModel>

Properties

Container

DiagramEditableDragSettings<TShapeModel, TConnectionModel>

Container member.

C#
protected DiagramEditableDragSettings<TShapeModel, TConnectionModel> Container { get; }

Methods

Specifies the shapes drag snap options. By default, during dragging, the shapes move by a given number of pixels at once. You can disable this behavior to make shapes movement smooth or you can specify a different number for the drag snap size to simulate a snap-to-grid functionality.

C#
public DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> Snap(Action<DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
Parameters:configuratorAction<DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel>>

The DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel> for the snap setting.

Returns:

DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> .

Specifies the shapes drag snap options. By default, during dragging, the shapes move by a given number of pixels at once. You can disable this behavior to make shapes movement smooth or you can specify a different number for the drag snap size to simulate a snap-to-grid functionality.

C#
public DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel> Snap(bool enabled)
Parameters:enabledbool

Enables or disables the snap option.

Returns:

DiagramEditableDragSettingsBuilder<TShapeModel, TConnectionModel>

Returns the current instance of DiagramEditableDragSnapSettingsBuilder<TShapeModel, TConnectionModel> .