menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NodePort - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NodePort

    Represents the connection points of node and allows to create connections with only those specific points.

    Inheritance
    System.Object
    PortBase
    NodePort
    Implements
    INodePort
    IPort
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PortBase.BoundingRectangle
    PortBase.CanConnect()
    PortBase.ConnectionDirection
    PortBase.ConnectionDirectionProperty
    PortBase.ConnectorPadding
    PortBase.ConnectorPaddingProperty
    PortBase.Constraints
    PortBase.ConstraintsProperty
    PortBase.Displacement
    PortBase.DisplacementProperty
    PortBase.HitPadding
    PortBase.HitPaddingProperty
    PortBase.ID
    PortBase.IDProperty
    PortBase.Info
    PortBase.IsConnecting
    PortBase.IsConnectingProperty
    PortBase.Key
    PortBase.KeyProperty
    PortBase.OffsetX
    PortBase.OffsetXProperty
    PortBase.OffsetY
    PortBase.OffsetYProperty
    PortBase.OnPropertyChanged(String)
    PortBase.PortVisibility
    PortBase.PortVisibilityProperty
    PortBase.PropertyChanged
    PortBase.Shape
    PortBase.ShapeProperty
    PortBase.ShapeStyle
    PortBase.ShapeStyleProperty
    PortBase.UnitHeight
    PortBase.UnitHeightProperty
    PortBase.UnitWidth
    PortBase.UnitWidthProperty
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class NodePort : PortBase, INodePort, IPort, INodePortView, IView, IDiagramElement, IID, INotifyPropertyChanged

    Constructors

    NodePort()

    Initializes a new instance of the NodePort class.

    Declaration
    public NodePort()

    Fields

    NodeOffsetXProperty

    Using a DependencyProperty as the backing store for NodeOffsetX. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty NodeOffsetXProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    NodeOffsetYProperty

    Using a DependencyProperty as the backing store for NodeOffsetY. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty NodeOffsetYProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    NodeProperty

    Using a DependencyProperty as the backing store for Node. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty NodeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    UnitModeProperty

    Using a DependencyProperty as the backing store for UnitMode. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty UnitModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    Node

    Gets or sets the Node of the NodePort.

    Declaration
    public object Node { get; set; }
    Property Value
    Type
    System.Object

    NodeOffsetX

    Gets or sets the position of the NodePort on X-Axis.

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

    NodeOffsetY

    Gets or sets the position of the NodePort on Y-Axis.

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

    Methods

    ArrangeOverride(Size)

    Method to arrange NodePort class elements to given size.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    Size to arrange elements.

    Returns
    Type Description
    System.Windows.Size

    Return size.

    GetDirection()

    Method to get direction of orthogonal connector segments.

    Declaration
    public OrthogonalDirection GetDirection()
    Returns
    Type Description
    OrthogonalDirection

    Throws exception.

    MeasureOverride(Size)

    Method to measure size of NodePort class elements.

    Declaration
    protected override Size MeasureOverride(Size constraint)
    Parameters
    Type Name Description
    System.Windows.Size constraint

    Size to be measure.

    Returns
    Type Description
    System.Windows.Size

    Return measured size.

    OnApplyTemplate()

    Override Template from its base class

    Declaration
    public override void OnApplyTemplate()

    OnCreateAutomationPeer()

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type
    System.Windows.Automation.Peers.AutomationPeer

    Implements

    INodePort
    IPort
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved