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

DiagramOptionsBehavior Members

Contains options that control the DiagramControl’s behavior.

Constructors

Name Description
DiagramOptionsBehavior(DiagramControl) Initializes a new instance of the DiagramOptionsBehavior class.

Properties

Name Description
ActiveTool Specifies the currently selected diagram tool.
AllowDiagramProperties Obsolete. Specifies whether to display the ‘Properties’ menu item in the context menu.
AllowEmptySelection Specifies whether to allow selecting the root item.
AllowPropertiesPanel Specifies whether to display the ‘Properties’ menu item in the context menu.
BringIntoViewMargin Obsolete. Gets or sets the margin between diagram items and viewport bounds when calling the DiagramControl.BringItemsIntoView and DiagramControl.BringSelectionIntoView methods.
ConnectorsSeparationMode Specifies whether to automatically split the overlapping right-angle connectors.
ConnectorTool Specifies the tool that is used when the end-user selects the Connector tool in the Ribbon.
EllipseTool Specifies the tool that is used when the end-user selects the Ellipse tool in the Ribbon.
EnableProportionalResizing Gets or sets whether to maintain the aspect ratio when resizing diagram items.
FileDialogFilter Gets or sets the filter string that determines which files are displayed in the ‘Open File’ and ‘Save File As’ dialog boxes.
GlueToConnectionPointDistance Specifies the distance between the mouse pointer and a connection point at which the connector is glued to the point.
GlueToItemDistance Specifies the distance between the mouse pointer and a diagram item at which the connector is glued to the item.
HexagonTool Specifies the tool that is used when the end-user selects the Hexagon tool in the Ribbon.
MinDragDistance Specifies the number of pixels the cursor must move with the mouse down before dragging begins.
PanTool Gets or sets an object that is the DiagramControl‘s pan tool.
PointerTool Specifies the tool that is used when the end-user selects the Pointer tool in the Ribbon.
PointerToolDragMode Gets or sets whether dragging the pointer tool pans across the canvas or draws the selection rectangle. This is a dependency property.
PropertiesPanelVisibility Obsolete. Gets or sets the Properties Panel display mode.
RectangleTool Specifies the tool that is used when the end-user selects the Rectangle tool in the Ribbon.
ResizingMode Gets or sets how diagram items are resized.
RightTriangleTool Specifies the tool that is used when the end-user selects the Right Triangle tool in the Ribbon.
ScrollMode Specifies the current scroll mode.
SelectedStencils Specifies the selected shape groups.
SelectionMode Specifies the selection mode for diagram items.
SelectPartiallyCoveredItems Specifies whether to select items that are only partially covered with the selection rectangle.
ShowQuickShapes Gets or sets whether to show the Quick Shapes category in the Shapes Panel.
ShowSelectionRectangle Gets or sets whether to show the selection rectangle.
SkinGallery Obsolete. Gets or sets whether the visibility and enabled state of the skin gallery in the Ribbon menu.
SnapToGrid Gets or sets whether a diagram item can snap to grid lines during item movement and resizing operations in the Diagram Designer.
SnapToItems Gets or sets whether a diagram item can snap to alignment guides (snap lines) of other items during item movement and resizing operations in the Diagram Designer.
SnapToItemsDistance Gets or sets the minimum distance between alignment guides of a shape being dragged and another shape’s alignment guides at which the “snap-to-items” feature is activated. If the dragged shape is dropped at this position, it will be aligned with the second shape.
Stencils Provides access to the collection of available stencils.
ToolboxVisibility Obsolete. Gets or sets the Shapes toolbox display mode.
UseTabNavigation Gets or sets whether navigation through diagram items using the TAB key is enabled.

Methods

Name Description
Assign(BaseOptions) Copies settings of the specified object to the current object.
BeginUpdate() Locks the BaseOptions object by disallowing visual updates until the EndUpdate or CancelUpdate method is called. Inherited from BaseOptions.
CancelUpdate() Unlocks the BaseOptions object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from BaseOptions.
EndUpdate() Unlocks the BaseOptions object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from BaseOptions.
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.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Resets all options to their default values. Inherited from BaseOptions.
ToString() Returns a string representing the currently enabled options. Inherited from BaseOptions.
See Also