WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SnapSettings - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SnapSettings

    Represents the gridlines and defines how and when the objects have to be snapped.

    Inheritance
    System.Object
    SnapSettings
    Implements
    ISnapSettings
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class SnapSettings : ISnapSettings, INotifyPropertyChanged

    Constructors

    SnapSettings()

    Declaration
    public SnapSettings()

    Properties

    HorizontalGridlines

    Gets or sets the appearance of horizontal gridlines.

    Declaration
    public Gridlines HorizontalGridlines { get; set; }
    Property Value
    Type Description
    Gridlines

    SnapAngle

    Gets or sets the angle by which the object needs to be snapped.

    Declaration
    public double SnapAngle { get; set; }
    Property Value
    Type Description
    System.Double

    SnapConstraints

    Gets or sets the default behavior of the snapconstraints.

    Declaration
    public SnapConstraints SnapConstraints { get; set; }
    Property Value
    Type Description
    SnapConstraints

    SnapIndicatorStyle

    Gets or sets the style to snapping lines.

    Declaration
    public Style SnapIndicatorStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    SnapToObject

    Gets or sets the snapping nodes/connectors to objects.

    Declaration
    public SnapToObject SnapToObject { get; set; }
    Property Value
    Type Description
    SnapToObject

    VerticalGridlines

    Gets or sets the appearance of vertical gridlines.

    Declaration
    public Gridlines VerticalGridlines { get; set; }
    Property Value
    Type Description
    Gridlines

    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

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    ISnapSettings
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved