using System.Drawing; namespace Netron.Diagramming.Core { /// /// This interface describes the public members of a connector /// public interface IConnector : IDiagramEntity { #region Properties /// /// Gets the point at which the connector is located /// Point Point { get; set; } /// /// Gets or sets the connector to which this connector is attached to /// IConnector AttachedTo { get; set; } /// /// Gets the connectors (if any) attached to this connector /// CollectionBase AttachedConnectors { get; } #endregion #region Methods /// /// Attaches the given connector to this one /// /// The child connector to attach. void AttachConnector(IConnector child); /// /// Detaches the given connector from this connector. /// /// The child connector to detach. void DetachConnector(IConnector child); /// /// Detaches from its parent (if any). /// void DetachFromParent(); /// /// Attaches to another connector /// /// The new parent connector. void AttachTo(IConnector parent); #endregion } }