Skip to main content

DiagramOptionsView Members

Contains the DiagramControl’s view settings.

Constructors

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

Properties

Name Description
AllowShapeShadows Gets or sets whether to show shadows for diagram items.
BringIntoViewMargin Gets or sets the margin between diagram items and viewport bounds when calling the DiagramControl.BringItemsIntoView and DiagramControl.BringSelectionIntoView methods.
CanvasSizeMode Gets or sets whether the canvas size is automatically expanded/shrunk to fit the current shapes layout.
FitToDrawingMargin Gets or sets the margin between diagram contents and page bounds when calling the DiagramControl.FitToDrawing and DiagramControl.FitToItems methods.
GridSize Gets or sets the size of a grid’s cell.
Landscape Specifies whether to use the longer dimension of the page size as the page width.
MaxZoomFactor Specifies the maximum diagram zoom factor.
MeasureUnit Specifies the unit of measurement to use in UI.
MinZoomFactor Specifies the minimum diagram zoom factor.
PageMargin Gets or sets the amount of space between the page’s borders and its contents.
PageSize Gets or sets the initial diagram canvas size. This property also specifies to what extent the canvas is expanded/shrunk in auto-size mode (see DiagramOptionsView.CanvasSizeMode).
PaperKind Allows you to use one of the standard paper sizes as the page size.
PropertiesPanelVisibility Gets or sets the Properties Panel display mode.
ScrollMargin Gets or sets the minimum diagram margin.
ShowGrid Gets or sets whether to draw the grid, which helps you position shapes on the diagram canvas.
ShowMeasureUnit Specifies whether to display the unit of measurement next to values in the Properties Panel and Bottom Panel.
ShowPageBreaks Gets or sets whether to display page breaks.
ShowPanAndZoomPanel Specifies whether to show the Pan and Zoom Panel.
ShowRulers Gets or sets whether the diagram rulers are visible.
Theme Specifies the current theme.
ToolboxVisibility Gets or sets the Shapes Panel display mode.
ZoomFactor Specifies the diagram zoom factor.

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