Back to Devexpress

DiagramBuilder.AutoZoomMode(DiagramAutoZoomMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-diagrambuilder-dot-autozoommode-x28-devextreme-dot-aspnet-dot-mvc-dot-diagramautozoommode-x29.md

latest1.4 KB
Original Source

DiagramBuilder.AutoZoomMode(DiagramAutoZoomMode) Method

Specifies how the Diagram UI component automatically zooms the work area. Mirrors the client-side autoZoomMode object.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public DiagramBuilder AutoZoomMode(
    DiagramAutoZoomMode value
)

Parameters

NameTypeDescription
valueDiagramAutoZoomMode

The option value.

|

Returns

TypeDescription
DiagramBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Diagram()
    .AutoZoomMode(DiagramAutoZoomMode.FitContent)
)

See Also

DiagramBuilder Class

DiagramBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace