Class ScrollSettings
Represents the zoom value, zoom factor, scroll status and view port size of the diagram.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class ScrollSettings : Object, INotifyPropertyChanged
Constructors
ScrollSettings()
Initializes a new instance of the ScrollSettings class.
Declaration
public ScrollSettings()
Properties
AutoScrollBorder
Gets or sets the maximum distance to be left between the object and the scroll bar to trigger auto scrolling.
Declaration
public Thickness AutoScrollBorder { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
AutoScrollLimit
Gets or sets the scrollable region of Diagram.
Declaration
public ScrollLimit AutoScrollLimit { get; set; }
Property Value
Type |
---|
ScrollLimit |
DragLimit
Gets or sets the scrollable region of Diagram using Mouse Wheel.
Declaration
public ScrollLimit DragLimit { get; set; }
Property Value
Type |
---|
ScrollLimit |
EditableArea
Gets or sets the dragable region of Diagram.
Declaration
public Rect EditableArea { get; set; }
Property Value
Type |
---|
System.Windows.Rect |
MaxZoom
Gets or sets the maximum zoom value for the diagram.
Declaration
public double MaxZoom { get; set; }
Property Value
Type |
---|
System.Double |
MinZoom
Gets or sets the minimum zoom value for the diagram.
Declaration
public double MinZoom { get; set; }
Property Value
Type |
---|
System.Double |
ScrollableArea
Gets or sets the scrollable area of Diagram. Applicable, if the scroll limit is “Limited”.
Declaration
public Rect ScrollableArea { get; set; }
Property Value
Type |
---|
System.Windows.Rect |
ScrollFactor
Gets or sets the scrollfactor to scroll the diagram.
Declaration
public Nullable<double> ScrollFactor { get; set; }
Property Value
Type |
---|
System.Nullable<System.Double> |
ScrollInfo
Gets the information about the scrolling.
Declaration
public IScrollInfo ScrollInfo { get; }
Property Value
Type |
---|
IScrollInfo |
ScrollLimit
Gets or sets the scrollable region of Diagram using Mouse Wheel.
Declaration
public ScrollLimit ScrollLimit { get; set; }
Property Value
Type |
---|
ScrollLimit |
ZoomFactor
Gets or sets the zoomfactor value to zoom in or zoom out the diagram.
Declaration
public double ZoomFactor { get; set; }
Property Value
Type |
---|
System.Double |
Methods
OnPropertyChanged(String)
Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(name).
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
SetHorizontalOffset(Double)
Specifies the method to update the horizotal offset for scrolling.
Declaration
public void SetHorizontalOffset(double x)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | Gets x value |
SetVerticalOffset(Double)
Specifies the method to update the vertical offset for scrolling.
Declaration
public void SetVerticalOffset(double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | y | Gets y value |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |