Skip to main content
A newer version of this page is available. .

DiagramBuilder Methods

A Diagram control.
Name Description
AutoZoomMode(DiagramAutoZoomMode) Mirrors the client-side autoZoomMode object.
ContextMenu(Action<DiagramContextMenuBuilder>) Mirrors the client-side contextMenu object.
ContextToolbox(Action<DiagramContextToolboxBuilder>) Mirrors the client-side contextToolbox object.
CustomShapes(Action<CollectionFactory<DiagramCustomShapeBuilder>>) Provides access to the client-side customShapes option that represents a custom shape collection.
CustomShapeTemplate(JS) Specifies the client-side customShapeTemplate.
CustomShapeTemplate(RazorBlock) Specifies the client-side customShapeTemplate.
CustomShapeTemplate(TemplateName) Specifies the client-side customShapeTemplate.
CustomShapeTemplate(String) Specifies the client-side customShapeTemplate.
CustomShapeToolboxTemplate(JS) Mirrors the client-side customShapeToolboxTemplate object.
CustomShapeToolboxTemplate(RazorBlock) Mirrors the client-side customShapeToolboxTemplate object.
CustomShapeToolboxTemplate(TemplateName) Mirrors the client-side customShapeToolboxTemplate object.
CustomShapeToolboxTemplate(String) Mirrors the client-side customShapeToolboxTemplate object.
DefaultItemProperties(Action<DiagramDefaultItemPropertiesBuilder>) Mirrors the client-side defaultItemProperties object.
Disabled(JS) Mirrors the client-side disabled option.
Disabled(Boolean) Mirrors the client-side disabled option.
Edges(Action<DiagramEdgesBuilder>) Mirrors the client-side edges object.
Editing(Action<DiagramEditingBuilder>) Mirrors the client-side editing object.
ElementAttr(JS) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
ElementAttr(Dictionary<String, Object>) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
ElementAttr(Object) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
ElementAttr(String, Object) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Export(Action<DiagramExportBuilder>) Mirrors the client-side export object.
FullScreen(JS) Mirrors the client-side fullScreen option.
FullScreen(Boolean) Mirrors the client-side fullScreen option.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
GridSize(JS) Mirrors the client-side gridSize option.
GridSize(Action<DiagramGridSizeBuilder>) Mirrors the client-side gridSize object.
GridSize(Double) Mirrors the client-side gridSize option.
HasChanges(JS) Mirrors the client-side hasChanges option.
HasChanges(Boolean) Mirrors the client-side hasChanges option.
Height(JS) Mirrors the client-side height option.
Height(Double) Mirrors the client-side height option.
Height(String) Mirrors the client-side height option.
HistoryToolbar(Action<DiagramHistoryToolbarBuilder>) Mirrors the client-side historyToolbar object.
ID(JS) Specifies the id attribute for the control’s HTML element (used for nested controls within templates).
ID(String) Specifies the id attribute for the control’s HTML element.
MainToolbar(Action<DiagramMainToolbarBuilder>) Mirrors the client-side mainToolbar object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Nodes(Action<DiagramNodesBuilder>) Mirrors the client-side nodes object.
OnContentReady(RazorBlock) Mirrors the client-side onContentReady option.
OnContentReady(String) Mirrors the client-side onContentReady option.
OnCustomCommand(RazorBlock) Mirrors the client-side onCustomCommand option.
OnCustomCommand(String) Mirrors the client-side onCustomCommand option.
OnDisposing(RazorBlock) Mirrors the client-side onDisposing option.
OnDisposing(String) Mirrors the client-side onDisposing option.
OnInitialized(RazorBlock) Mirrors the client-side onInitialized option.
OnInitialized(String) Mirrors the client-side onInitialized option.
OnItemClick(RazorBlock) Mirrors the client-side onItemClick option.
OnItemClick(String) Mirrors the client-side onItemClick option.
OnItemDblClick(RazorBlock) Mirrors the client-side onItemDblClick option.
OnItemDblClick(String) Mirrors the client-side onItemDblClick option.
OnOptionChanged(RazorBlock) Mirrors the client-side onOptionChanged option.
OnOptionChanged(String) Mirrors the client-side onOptionChanged option.
OnRequestEditOperation(RazorBlock) Mirrors the client-side onRequestEditOperation option.
OnRequestEditOperation(String) Mirrors the client-side onRequestEditOperation option.
OnRequestLayoutUpdate(RazorBlock) Mirrors the client-side onRequestEditOperation option.
OnRequestLayoutUpdate(String) Mirrors the client-side onRequestEditOperation option.
OnSelectionChanged(RazorBlock) Mirrors the client-side onSelectionChanged option.
OnSelectionChanged(String) Mirrors the client-side onSelectionChanged option.
Option(String, Object) Specifies an option by its name.
PageColor(JS) Mirrors the client-side pageColor option.
PageColor(String) Mirrors the client-side pageColor option.
PageOrientation(DiagramPageOrientation) Mirrors the client-side pageOrientation option.
PageSize(Action<DiagramPageSizeBuilder>) Mirrors the client-side pageSize object.
PropertiesPanel(Action<DiagramPropertiesPanelBuilder>) Mirrors the client-side propertiesPanel object.
ReadOnly(JS) Mirrors the client-side readOnly option.
ReadOnly(Boolean) Mirrors the client-side readOnly option.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Render() Inherited from WidgetBuilder.
RtlEnabled(JS) Mirrors the client-side rtlEnabled option.
RtlEnabled(Boolean) Mirrors the client-side rtlEnabled option.
ShowGrid(JS) Mirrors the client-side showGrid option.
ShowGrid(Boolean) Mirrors the client-side showGrid option.
SimpleView(JS) Mirrors the client-side simpleView option.
SimpleView(Boolean) Mirrors the client-side simpleView option.
SnapToGrid(JS) Mirrors the client-side snapToGrid option.
SnapToGrid(Boolean) Mirrors the client-side snapToGrid option.
Toolbox(Action<DiagramToolboxBuilder>) Mirrors the client-side toolbox object.
ToString() Inherited from WidgetBuilder.
ToTemplate() Renders the control as a template string for use in another control’s template. Inherited from WidgetBuilder.
Units(DiagramUnits) Mirrors the client-side units option.
UseNativeScrolling(JS)
UseNativeScrolling(Boolean)
ViewToolbar(Action<DiagramViewToolbarBuilder>) Mirrors the client-side viewToolbar object.
ViewUnits(DiagramUnits) Mirrors the client-side viewUnits option.
Visible(JS) Mirrors the client-side visible option.
Visible(Boolean) Mirrors the client-side visible option.
Width(JS) Mirrors the client-side width option.
Width(Double) Mirrors the client-side width option.
Width(String) Mirrors the client-side width option.
ZoomLevel(JS) Mirrors the client-side zoomLevel option.
ZoomLevel(Action<DiagramZoomLevelBuilder>) Mirrors the client-side zoomLevel object.
ZoomLevel(Double) Mirrors the client-side zoomLevel option.
See Also