Class PortBase
Define the base calss of the Port.
Inheritance
System.Object
PortBase
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public abstract class PortBase : ContentControl, IPort, IDiagramElement, IID, INotifyPropertyChanged
Constructors
PortBase()
Initializes a new instance of the PortBase class.
Declaration
Fields
ConnectionDirectionProperty
Declaration
public static DependencyProperty ConnectionDirectionProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
ConnectorPaddingProperty
Using a DependencyProperty as the backing store for ConnectorPadding. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty ConnectorPaddingProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
ConstraintsProperty
///DependencyProperty ///
Declaration
public static DependencyProperty ConstraintsProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
DisplacementProperty
Declaration
public static DependencyProperty DisplacementProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
HitPaddingProperty
Declaration
public static readonly DependencyProperty HitPaddingProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
IDProperty
///DependencyProperty ///
Declaration
public static DependencyProperty IDProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
IsConnectingProperty
Declaration
public static DependencyProperty IsConnectingProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
KeyProperty
///DependencyProperty ///
Declaration
public static DependencyProperty KeyProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
OffsetXProperty
///DependencyProperty ///
Declaration
public static DependencyProperty OffsetXProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
OffsetYProperty
///DependencyProperty ///
Declaration
public static DependencyProperty OffsetYProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
PortVisibilityProperty
Using a DependencyProperty as the backing store for PortVisibility. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty PortVisibilityProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
ShapeProperty
///DependencyProperty ///
Declaration
public static DependencyProperty ShapeProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
ShapeStyleProperty
///DependencyProperty ///
Declaration
public static DependencyProperty ShapeStyleProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
UnitHeightProperty
Declaration
public static DependencyProperty UnitHeightProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
UnitWidthProperty
Declaration
public static DependencyProperty UnitWidthProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
Properties
BoundingRectangle
Gets or sets the bounding rectangle of the Port.
Declaration
public Rect BoundingRectangle { get; }
Property Value
Type |
Description |
System.Windows.Rect |
|
ConnectionDirection
Gets or sets the connection direction of the connector.
Declaration
public ConnectionDirection ConnectionDirection { get; set; }
Property Value
ConnectorPadding
Defines the space to be left between the Port bounds and its incoming and outgoing connections.
Declaration
public double ConnectorPadding { get; set; }
Property Value
Type |
Description |
System.Double |
|
Constraints
Gets or sets the default behaviors of the Port.
Declaration
public PortConstraints Constraints { get; set; }
Property Value
Displacement
Declaration
public Thickness Displacement { get; set; }
Property Value
Type |
Description |
System.Windows.Thickness |
|
HitPadding
Defines the Range of the Port Connection
Declaration
public double HitPadding { get; set; }
Property Value
Type |
Description |
System.Double |
|
ID
Gets or sets the ID of the port.
Declaration
public object ID { get; set; }
Property Value
Type |
Description |
System.Object |
|
Info
Set Info property to Port. It is used to get information about Connector connection with Port
Declaration
public object Info { get; set; }
Property Value
Type |
Description |
System.Object |
|
IsConnecting
Gets or sets a value that indicates whether a port having a connecting state.
Declaration
public bool IsConnecting { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Key
Gets or sets the key of the port.
Declaration
public object Key { get; set; }
Property Value
Type |
Description |
System.Object |
|
OffsetX
Gets or sets the position of the port on X-Axis.
Declaration
public double OffsetX { get; protected set; }
Property Value
Type |
Description |
System.Double |
|
OffsetY
Gets or sets the position of the port on Y-Axis.
Declaration
public double OffsetY { get; protected set; }
Property Value
Type |
Description |
System.Double |
|
PortVisibility
Defines when the Port should be visible.
Declaration
public PortVisibility PortVisibility { get; set; }
Property Value
Shape
Declaration
public object Shape { get; set; }
Property Value
Type |
Description |
System.Object |
|
ShapeStyle
Declaration
public Style ShapeStyle { get; set; }
Property Value
Type |
Description |
System.Windows.Style |
|
UnitHeight
Defines the Width of the Port.
Declaration
public double UnitHeight { get; set; }
Property Value
Type |
Description |
System.Double |
|
UnitWidth
Defines the Width of the Port.
Declaration
public double UnitWidth { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
CanConnect()
Create Virtual method to Set condition for Visible the Port
Declaration
public virtual bool CanConnect()
Returns
Type |
Description |
System.Boolean |
returns true means its displays ports visibility
|
OnPropertyChanged(String)
Set Virtual method to change the Property of Port
Declaration
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged