menu

WinForms

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

    Show / Hide Table of Contents

    Class LineSegmentTool

    Interactive tool for moving the segments of a line.

    Inheritance
    System.Object
    Tool
    LineSegmentTool
    Implements
    System.IDisposable
    Inherited Members
    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()
    Tool.Abort()
    Tool.ActionCursor
    Tool.ActivateTool()
    Tool.AppendParentTransformations(PointF, Node)
    Tool.ApplyDecorator(Decorator, Decorator)
    Tool.CanAddNode(Rectangle)
    Tool.CanInsert(Node)
    Tool.CanRender
    Tool.CheckBoundaryConstraints(Node, Matrix)
    Tool.CheckConnectionCenterPort(PointF)
    Tool.CheckConnectionPossibility(PointF)
    Tool.Controller
    Tool.CurrentCursor
    Tool.CurrentPoint
    Tool.CurrentToolCursor
    Tool.DeactivateTool()
    Tool.DrawFrameAroundPort(Graphics, ConnectionPoint)
    Tool.DrawRenderHelper(Node, Graphics)
    Tool.DrawRenderHelper(Node, Graphics, Rectangle)
    Tool.GetCurrentPoint(Boolean)
    Tool.GetEndPointLocation(ConnectionPoint, PointF)
    Tool.GetFrameRectangle(Boolean)
    Tool.GetFullRotationAngle(Node)
    Tool.GetInsideNodeAt(PointF)
    Tool.GetLocalPoint(Node, PointF)
    Tool.GetNodeUnderEndPoint(PointF)
    Tool.GetOriginOffset()
    Tool.GetPointOffset(PointF, Node)
    Tool.GetPortBounds(ConnectionPoint, Single)
    Tool.GetSelectionList()
    Tool.GetSnapCurrentPoint()
    Tool.GetSnapStartPoint()
    Tool.GetStartPoint(Boolean)
    Tool.HighlightCenterPortContainer(Graphics, ConnectionPoint)
    Tool.InAction
    Tool.m_ConnectorSourceEventArgs
    Tool.m_ConnectorTargetEventArgs
    Tool.m_ptStartOrigin
    Tool.m_rulerDisplayRect
    Tool.m_toolPreceding
    Tool.MakeControlNodeSnapshot(ControlNode)
    Tool.Name
    Tool.OnConnectorChanging(EndPointChangingEventArgs)
    Tool.OutlineConnectionPoint(Graphics, ConnectionPoint)
    Tool.PrecedingTool
    Tool.ProcessClick()
    Tool.ProcessDoubleClick(MouseEventArgs)
    Tool.ProcessKeyDown(KeyEventArgs)
    Tool.ProcessKeyPress(KeyPressEventArgs)
    Tool.ProcessKeyUp(KeyEventArgs)
    Tool.QuiteBoundarySet(Boolean)
    Tool.QuiteBridgingSet(Boolean)
    Tool.RulerHeight
    Tool.SingleActionTool
    Tool.SmartSnap(PointF, SizeF)
    Tool.SnapToPort(PointF, SizeF)
    Tool.SnapToPort(PointF, SizeF, Node)
    Tool.StartPoint
    Tool.ToolCursor
    Tool.ToolWorkRect
    Tool.UpdateConnnectorChangeEvent(IEndPointContainer, ConnectionPoint, ConnectionPoint)
    Tool.UpdateCursor(Boolean)
    Tool.UpdatePortRefreshRect(ConnectionPoint, Rectangle)
    Tool.WorkRect
    Tool.WorkRectPrev
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Windows.dll
    Syntax
    public class LineSegmentTool : Tool, IDisposable
    Remarks

    Tool

    Constructors

    LineSegmentTool(DiagramController, Tool, PathNode)

    Initializes a new instance of the LineSegmentTool class.

    Declaration
    public LineSegmentTool(DiagramController controller, Tool toolPreceding, PathNode nodePath)
    Parameters
    Type Name Description
    DiagramController controller

    The controller.

    Tool toolPreceding

    The tool preceding.

    PathNode nodePath

    The node path.

    Methods

    CanMove()

    Determines whether this segment can move.

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

    true if this segment can move; otherwise, false.

    Dispose()

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

    Draw(Graphics)

    Draws the specified graphics.

    Declaration
    public override void Draw(Graphics gfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    Graphics to draw on.

    Overrides
    Tool.Draw(Graphics)

    GetMoveOffset(PointF, PointF)

    Get the move offset.

    Declaration
    public SizeF GetMoveOffset(PointF ptEnd, PointF ptStart)
    Parameters
    Type Name Description
    System.Drawing.PointF ptEnd

    The end point position.

    System.Drawing.PointF ptStart

    The start point position.

    Returns
    Type Description
    System.Drawing.SizeF

    Size of the offset.

    OnOriginChanged(ViewOriginEventArgs)

    Raise the origin changed event.

    Declaration
    protected override void OnOriginChanged(ViewOriginEventArgs evtArgs)
    Parameters
    Type Name Description
    ViewOriginEventArgs evtArgs

    The ViewOriginEventArgs instance containing the event data.

    Overrides
    Tool.OnOriginChanged(ViewOriginEventArgs)

    ProcessMouseDown(MouseEventArgs)

    Start segment move action

    Declaration
    public override Tool ProcessMouseDown(MouseEventArgs evtArgs)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs evtArgs

    mouse event arg

    Returns
    Type Description
    Tool

    base tools

    Overrides
    Tool.ProcessMouseDown(MouseEventArgs)

    ProcessMouseMove(MouseEventArgs)

    On Move segment

    Declaration
    public override Tool ProcessMouseMove(MouseEventArgs evtArgs)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs evtArgs

    mouse event arg

    Returns
    Type Description
    Tool

    base tools

    Overrides
    Tool.ProcessMouseMove(MouseEventArgs)

    ProcessMouseUp(MouseEventArgs)

    End segment move action

    Declaration
    public override Tool ProcessMouseUp(MouseEventArgs evtArgs)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs evtArgs

    mouse event arg

    Returns
    Type Description
    Tool

    previous tool

    Overrides
    Tool.ProcessMouseUp(MouseEventArgs)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved