menu

WinForms

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

    Show / Hide Table of Contents

    Class ConnectorLineSegment

    Connector line segment.

    Inheritance
    System.Object
    LineSegment
    ConnectorLineSegment
    OrthogonalLineSegment
    Implements
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    System.ICloneable
    IConnectorLineSegment
    Inherited Members
    LineSegment.GetObjectData(SerializationInfo, StreamingContext)
    LineSegment.GetOrthogonalIntersect(LineSegment, PointF)
    LineSegment.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    LineSegment.m_pt1
    LineSegment.m_pt2
    LineSegment.MidPoint
    LineSegment.nSegmentIndex
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class ConnectorLineSegment : LineSegment, ISerializable, IDisposable, ICloneable, IConnectorLineSegment

    Constructors

    ConnectorLineSegment(ConnectorLineSegment)

    Initializes a new instance of the ConnectorLineSegment class.

    Declaration
    public ConnectorLineSegment(ConnectorLineSegment src)
    Parameters
    Type Name Description
    ConnectorLineSegment src

    The SRC.

    ConnectorLineSegment(IHandle, IHandle)

    Constructs a line segment given two points.

    Declaration
    public ConnectorLineSegment(IHandle firstHandle, IHandle secondHandle)
    Parameters
    Type Name Description
    IHandle firstHandle

    First point in line segment.

    IHandle secondHandle

    Second point in line segment.

    ConnectorLineSegment(IHandle, IHandle, Int32)

    Constructs a line segment given two points.

    Declaration
    public ConnectorLineSegment(IHandle firstHandle, IHandle secondHandle, int segmentIndex)
    Parameters
    Type Name Description
    IHandle firstHandle

    First point in line segment.

    IHandle secondHandle

    Second point in line segment.

    System.Int32 segmentIndex

    Line segment index.

    ConnectorLineSegment(SerializationInfo, StreamingContext)

    Initializes a new instance of the ConnectorLineSegment class.

    Declaration
    protected ConnectorLineSegment(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    The info.

    System.Runtime.Serialization.StreamingContext context

    The context.

    Fields

    m_firstHandle

    Declaration
    protected IHandle m_firstHandle
    Field Value
    Type
    IHandle

    m_secondHandle

    Declaration
    protected IHandle m_secondHandle
    Field Value
    Type
    IHandle

    Properties

    Bridges

    Gets the bridges.

    Declaration
    public ArrayList Bridges { get; }
    Property Value
    Type Description
    System.Collections.ArrayList

    The bridges.

    Point1

    First point in the line segment.

    Declaration
    public override PointF Point1 { get; set; }
    Property Value
    Type
    System.Drawing.PointF
    Overrides
    LineSegment.Point1

    Point2

    Second point in the line segment.

    Declaration
    public override PointF Point2 { get; set; }
    Property Value
    Type
    System.Drawing.PointF
    Overrides
    LineSegment.Point2

    Methods

    CanMove()

    Determines whether segment can move.

    Declaration
    protected bool CanMove()
    Returns
    Type Description
    System.Boolean

    true if segment can move; otherwise, false.

    Clone()

    Clones this instance.

    Declaration
    public override object Clone()
    Returns
    Type
    System.Object
    Overrides
    LineSegment.Clone()

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    LineSegment.Dispose()

    GetFirstPointLocation(Matrix)

    Calculate first point location.

    Declaration
    public PointF GetFirstPointLocation(Matrix mtx)
    Parameters
    Type Name Description
    System.Drawing.Drawing2D.Matrix mtx

    Parent transformation. If equals null return Point1 property.

    Returns
    Type Description
    System.Drawing.PointF

    First point location.

    GetSecondPointLocation(Matrix)

    Calculate second point location.

    Declaration
    public PointF GetSecondPointLocation(Matrix mtx)
    Parameters
    Type Name Description
    System.Drawing.Drawing2D.Matrix mtx

    Parent transformation. If equals null return Point2 property.

    Returns
    Type Description
    System.Drawing.PointF

    Second point location.

    Move(SizeF)

    Move segment to offset.

    Declaration
    public virtual void Move(SizeF szOffset)
    Parameters
    Type Name Description
    System.Drawing.SizeF szOffset

    Move offset.

    SyncSegmentHandle(IHandle)

    Synchronization segment to handle changes.

    Declaration
    public virtual void SyncSegmentHandle(IHandle handle)
    Parameters
    Type Name Description
    IHandle handle

    The handle.

    Implements

    System.Runtime.Serialization.ISerializable
    System.IDisposable
    System.ICloneable
    IConnectorLineSegment
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved