WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LineBase - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LineBase

    Base shape class to visualize line with end point decorators.

    Inheritance
    System.Object
    Node
    PathNode
    LineBase
    ConnectorBase
    CurveNode
    Line
    PolylineNode
    Implements
    IUnitIndependent
    IDispatchNodeEvents
    System.Runtime.Serialization.ISerializable
    INode
    System.ICloneable
    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    System.IServiceProvider
    IGraphNode
    System.Runtime.Serialization.IDeserializationCallback
    System.IDisposable
    Inherited Members
    PathNode.m_bCanChangePath
    PathNode.m_bIsVertexEditable
    PathNode.m_maxPoints
    PathNode.m_minPoints
    PathNode.m_gpPath
    PathNode.DoSizeRelatedActions(SizeF, SizeF)
    PathNode.OnDeserialized()
    PathNode.RenderContiguousData(Graphics)
    PathNode.OnMouseEnter(EventArgs)
    PathNode.OnMouseLeave(EventArgs)
    PathNode.OnNodeScaleChanged(String)
    PathNode.IsControlPointValid(ControlPoint)
    PathNode.DoHandleMoveRelated(IHandle, SizeF)
    PathNode.HandleMove(IHandle, SizeF)
    PathNode.TransformControlPoints(Matrix)
    PathNode.UpdateSegmentsRegion()
    PathNode.UpdatePathNodeData()
    PathNode.GetPathPoints()
    PathNode.GetPathPoints(Matrix)
    PathNode.UpdateGraphicsPath(PointF[])
    PathNode.CreateLogicalGraphicsPath(PointF[])
    PathNode.CreateGraphicsPath(PointF[])
    PathNode.UpdateBoundsInfo(RectangleF)
    PathNode.PreparePathPointsForInsert(Int32, PointF)
    PathNode.GetAdjacentPathPoint(PointF, Boolean, Boolean, PointF)
    PathNode.CanEditSegment()
    PathNode.CanEditControlPoint()
    PathNode.CanEditVertexPoint()
    PathNode.CanMoveHandle(IHandle)
    PathNode.CanMoveHandle(IHandle, PointF)
    PathNode.ContainsHandle(IHandle)
    PathNode.GetControlPoints()
    PathNode.CanDrawControlPoints()
    PathNode.DrawControlPoints(Graphics)
    PathNode.DrawControlPoint(Graphics, ControlPoint, SizeF, Pen, Brush)
    PathNode.GetControlPointAt(PointF)
    PathNode.GetControlPointAt(Int32)
    PathNode.GetControlPointByID(Int32)
    PathNode.TryCombine(GraphicsPath, Boolean)
    PathNode.CanCombine(GraphicsPath)
    PathNode.GetPoints(Boolean)
    PathNode.GetPoints()
    PathNode.SetPoints(PointF[], Boolean)
    PathNode.SetPoints(PointF[])
    PathNode.FinishSetPoints()
    PathNode.MoveSegment(Int32, SizeF)
    PathNode.GetPoint(Int32)
    PathNode.GetPoint(Int32, Boolean)
    PathNode.SetPoint(Int32, PointF, Boolean)
    PathNode.SetPoint(Int32, PointF)
    PathNode.AddPoint(PointF, Boolean)
    PathNode.AddPoint(PointF)
    PathNode.InsertPoint(Int32, PointF, Boolean)
    PathNode.InsertPoint(Int32, PointF)
    PathNode.RemovePoint(Int32)
    PathNode.GetLineSegmentAtPoint(PointF)
    PathNode.GetLineSegmentPoints(Int32)
    PathNode.MoveLineSegment(Int32, SizeF)
    PathNode.BeforeMoveSegment(PointF[])
    PathNode.ValidateOffset(Int32, SizeF)
    PathNode.UpdateControlPoints(PointF[], Int32)
    PathNode.SetControlPoints(PointF[], Int32)
    PathNode.UpdateNonLineBoundsInfo(RectangleF)
    PathNode.GetNewBounds(PointF[])
    PathNode.GetNewPathBounds(PointF[])
    PathNode.UpdatePathLocation(GraphicsPath, RectangleF)
    PathNode.IsPathVertexEditable(GraphicsPath)
    PathNode.RecordVertexChanged(VertexChangeType, Int32, PointF)
    PathNode.OnVertexChanging(VertexChangeType, Int32, PointF)
    PathNode.OnVertexChanged(VertexChangeType, Int32, PointF)
    PathNode.CanChangePoints(PointF[])
    PathNode.Labels
    PathNode.LogicalGraphicsPath
    PathNode.PointCount
    PathNode.LineSegmentCount
    PathNode.MinPoints
    PathNode.MaxPoints
    PathNode.CanChangePath
    PathNode.IsVertexEditable
    PathNode.PathPoints
    PathNode.PathPointsRelative
    PathNode.ControlPoints
    Node.m_rgnCache
    Node.m_fRotationAngle
    Node.m_mgrHistory
    Node.m_eventSink
    Node.m_mgrLink
    Node.m_mgrBridge
    Node.m_bLockUpdate
    Node.m_rectRefresh
    Node.m_bPortUpdating
    Node.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    Node.Clone()
    Node.UpdateServiceReferences(IServiceReferenceProvider)
    Node.ProvideServiceReference(RuntimeTypeHandle)
    Node.GetPropertyContainerByName(String)
    Node.OnPropertyChanging(String, String, Object)
    Node.OnPropertyChanged(String, String)
    Node.Draw(Graphics)
    Node.Draw(Graphics, Boolean)
    Node.PrepareGraphics(Graphics)
    Node.ContainsPoint(PointF)
    Node.Translate(Single, Single, MeasureUnits)
    Node.Translate(Single, Single)
    Node.Rotate(Single)
    Node.Scale(Single, Single)
    Node.AppendFlipTransforms(Matrix)
    Node.AppendLocalFlipTransforms(Matrix)
    Node.GetTransformations()
    Node.GetLocalTransformations()
    Node.GetParentTransformation(Boolean)
    Node.AppendFlipTransforms(Matrix, PointF, Boolean, Boolean)
    Node.GetTransformations(PointF, SizeF, Single)
    Node.OnMeasurementUnitsChanging(MeasureUnits)
    Node.QuiteBoundarySet(Boolean)
    Node.DoPinOffsetRelatedActions(SizeF, SizeF)
    Node.DoMoveRelatedActions(Single, Single)
    Node.SafeHistoryPause()
    Node.SafeHistoryResume()
    Node.UpdateBoundingRectangle()
    Node.GetNodeBounds(Boolean, Boolean)
    Node.GetRectBounds(Boolean, Boolean)
    Node.GetPathBounds()
    Node.UpdateRefreshRect()
    Node.UpdateRefreshRect(RectangleF, Matrix)
    Node.GetScaleTransformation()
    Node.ConvertToNodeCoordinates(PointF)
    Node.ConvertToModelCoordinates(PointF)
    Node.Move(Single, Single)
    Node.ChangeFlipX(Boolean)
    Node.ChangeFlipY(Boolean)
    Node.ChangeRotationBy(Single)
    Node.SetPinOffset(SizeF, SizeF)
    Node.SetSize(SizeF, SizeF)
    Node.OnParentChanging()
    Node.OnParentChanged()
    Node.LogicalUnitChange(GraphicsUnit)
    Node.CanWiden(GraphicsPath)
    Node.OnMouseClick(EventArgs)
    Node.OnMouseDoubleClick(EventArgs)
    Node.SetPinPoint(PointF, MeasureUnits)
    Node.EventSink_PropertyChanging(PropertyChangingEventArgs)
    Node.EventSink_PropertyChanged(PropertyChangedEventArgs)
    Node.CreateBoundsInfo()
    Node.CreateBoundsInfo(PointF, SizeF, SizeF)
    Node.CreateBoundsInfo(BoundsInfo)
    Node.CreateBoundsInfo(BoundsInfo, PageScale)
    Node.UpdatePortPositions(SizeF, SizeF)
    Node.UpdateContainerBounds()
    Node.CanUpdateConnections(EndPoint)
    Node.IsClosedPath(GraphicsPath)
    Node.GetBoundsRect(Node)
    Node.UpdateGraphicsPath(SizeF, SizeF)
    Node.GetUpperLeftPoint(MeasureUnits)
    Node.RecordPropertyChanged(String)
    Node.CheckConstrainingRegion(PointF)
    Node.CheckConstrainingRegion(RectangleF)
    Node.CheckNewPinPoint(PointF, MeasureUnits)
    Node.GetService(Type)
    Node.IUnitIndependent.GetPinPoint(MeasureUnits)
    Node.IUnitIndependent.GetSize(MeasureUnits)
    Node.IUnitIndependent.GetPinPointOffset(MeasureUnits)
    Node.IUnitIndependent.GetBoundingRectangle(MeasureUnits, Boolean)
    Node.IUnitIndependent.SetPinPoint(PointF, MeasureUnits)
    Node.IUnitIndependent.SetSize(SizeF, MeasureUnits)
    Node.IUnitIndependent.SetPinPointOffset(SizeF, MeasureUnits)
    Node.IDispatchNodeEvents.Click(EventArgs)
    Node.IDispatchNodeEvents.DoubleClick(EventArgs)
    Node.IDispatchNodeEvents.MouseEnter(EventArgs)
    Node.IDispatchNodeEvents.MouseLeave(EventArgs)
    Node.IDeserializationCallback.OnDeserialization(Object)
    Node.AllowLabelDrag
    Node.TreatAsObstacle
    Node.PrintPorts
    Node.DrawPorts
    Node.Ports
    Node.ZOrder
    Node.EnableCentralPort
    Node.CentralPort
    Node.Tag
    Node.ExcludeFromLayout
    Node.IsExpanded
    Node.Name
    Node.FullName
    Node.Container
    Node.Parent
    Node.Root
    Node.Visible
    Node.Layers
    Node.LineHitTestPadding
    Node.MeasurementUnit
    Node.InheritContainerMeasureUnits
    Node.GraphicsPath
    Node.HistoryManager
    Node.EventSink
    Node.PropertyBag
    Node.ToolTipText
    Node.RefreshRect
    Node.BoundingRect
    Node.BoundsInfo
    Node.BoundingRectangle
    Node.Size
    Node.PinPointOffset
    Node.PinPoint
    Node.NodeScale
    Node.ShadowStyle
    Node.LineStyle
    Node.EditStyle
    Node.RotationAngle
    Node.FlipX
    Node.FlipY
    Node.FullContainerName
    Node.INode.Root
    Node.Edges
    Node.EdgesEntering
    Node.EdgesLeaving
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public abstract class LineBase : PathNode, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable

    Constructors

    LineBase()

    Initializes a new instance of the LineBase class.

    Declaration
    public LineBase()

    LineBase(LineBase)

    Initializes a new instance of the LineBase class.

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

    The LineBase instance.

    LineBase(SerializationInfo, StreamingContext)

    Initializes a new instance of the LineBase class.

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

    The serialization info.

    System.Runtime.Serialization.StreamingContext context

    The streaming context.

    Properties

    HeadDecorator

    Gets the head end point decorator property to customize the appearances of the connector�s head end point.

    Declaration
    public Decorator HeadDecorator { get; }
    Property Value
    Type Description
    Decorator

    The head decorator.

    TailDecorator

    Gets the tail end point decorator property to customize the appearances of the connector�s tail end point.

    Declaration
    public Decorator TailDecorator { get; }
    Property Value
    Type Description
    Decorator

    The tail decorator.

    Methods

    AccumulateRefreshRect(ref RectangleF)

    Accumulates the refresh rect.

    Declaration
    protected override void AccumulateRefreshRect(ref RectangleF rcRefresh)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rcRefresh

    The refresh rectangle.

    Overrides
    PathNode.AccumulateRefreshRect(ref RectangleF)

    Dispose()

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

    DrawDecorators(Graphics)

    Draw decorators. Default implementation provides decorators drawing for line.

    Declaration
    protected virtual void DrawDecorators(Graphics gfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    Graphics to draw on.

    DrawDecoratorsShadow(Graphics)

    Draw the decorators shadow to specified graphics.

    Declaration
    protected void DrawDecoratorsShadow(Graphics gfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    Graphics to draw on.

    DrawPath(Graphics)

    Draws the path to specified graphics.

    Declaration
    protected virtual void DrawPath(Graphics gfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    Graphics to draw on.

    GetDecoratorTransfrom(PointF, PointF, Single)

    Calculates the decorator transform.

    Declaration
    protected Matrix GetDecoratorTransfrom(PointF ptPoint, PointF ptControl, float depth)
    Parameters
    Type Name Description
    System.Drawing.PointF ptPoint

    The last point.

    System.Drawing.PointF ptControl

    The next to last point.

    System.Single depth

    The depth of decorator to next last point.

    Returns
    Type Description
    System.Drawing.Drawing2D.Matrix

    The System.Drawing.Drawing2D.Matrix.

    GetHeadDecoratorTransformations()

    Gets the tail decorator transformations.

    Declaration
    protected virtual Matrix GetHeadDecoratorTransformations()
    Returns
    Type Description
    System.Drawing.Drawing2D.Matrix

    The matrix.

    GetLineSegmentAt(Int32)

    Gets the line segment at given point.

    Declaration
    public virtual LineSegment GetLineSegmentAt(int nSegmentIndex)
    Parameters
    Type Name Description
    System.Int32 nSegmentIndex

    Index of the segment.

    Returns
    Type Description
    LineSegment

    The line segment.

    GetObjectData(SerializationInfo, StreamingContext)

    Gets the object data.

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

    The serialization info.

    System.Runtime.Serialization.StreamingContext context

    The streaming context.

    Overrides
    PathNode.GetObjectData(SerializationInfo, StreamingContext)

    GetPropertyContainer(String)

    Gets the property container.

    Declaration
    protected override object GetPropertyContainer(string strPropertyContainerName)
    Parameters
    Type Name Description
    System.String strPropertyContainerName

    Name of the property container.

    Returns
    Type Description
    System.Object

    The property container object.

    Overrides
    Node.GetPropertyContainer(String)

    GetTailDecoratorTransformations()

    Gets the head decorator transformations.

    Declaration
    protected virtual Matrix GetTailDecoratorTransformations()
    Returns
    Type Description
    System.Drawing.Drawing2D.Matrix

    The matrix.

    InitBoundsInfo(RectangleF)

    Initialize the bounds info.

    Declaration
    protected void InitBoundsInfo(RectangleF rcBounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rcBounds

    The bounds rectangle.

    Render(Graphics)

    Renders shapes visual representation on given graphics

    Declaration
    protected override void Render(Graphics gfx)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    Graphics to draw on

    Overrides
    Node.Render(Graphics)

    ShowResizeHandles()

    Indicate that selection and resize handles will draw on diagram canvas.

    Declaration
    public override bool ShowResizeHandles()
    Returns
    Type Description
    System.Boolean

    True if node can be resized, otherwise - false.

    Overrides
    Node.ShowResizeHandles()

    SynchronizeEndPoint(EndPoint, SizeF)

    Quite move endpoint to current offset.

    Declaration
    protected void SynchronizeEndPoint(EndPoint endPoint, SizeF szOffset)
    Parameters
    Type Name Description
    EndPoint endPoint

    The end point.

    System.Drawing.SizeF szOffset

    The move offset.

    UpdateHelperRegion()

    Creates region used for hit testing.

    Declaration
    protected override void UpdateHelperRegion()
    Overrides
    Node.UpdateHelperRegion()

    UpdateReferences(IServiceReferenceProvider)

    Updates the references from service provider.

    Declaration
    public override void UpdateReferences(IServiceReferenceProvider provider)
    Parameters
    Type Name Description
    IServiceReferenceProvider provider

    The service provider.

    Overrides
    PathNode.UpdateReferences(IServiceReferenceProvider)

    Implements

    IUnitIndependent
    IDispatchNodeEvents
    System.Runtime.Serialization.ISerializable
    INode
    System.ICloneable
    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    System.IServiceProvider
    IGraphNode
    System.Runtime.Serialization.IDeserializationCallback
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved