Class ConnectorLineSegment
Connector line segment.
Implements
Inherited Members
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
Point2
Second point in the line segment.
Declaration
public override PointF Point2 { get; set; }
Property Value
| Type |
|---|
| System.Drawing.PointF |
Overrides
Methods
CanMove()
Determines whether segment can move.
Declaration
protected bool CanMove()
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Clone()
Clones this instance.
Declaration
public override object Clone()
Returns
| Type |
|---|
| System.Object |
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
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. |