Class LineBase
Base shape class to visualize line with end point decorators.
Implements
Inherited Members
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
Dispose()
Declaration
public override void Dispose()
Overrides
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
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
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
ShowResizeHandles()
Indicate that selection and resize handles will draw on diagram canvas.
Declaration
public override bool ShowResizeHandles()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
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
UpdateReferences(IServiceReferenceProvider)
Updates the references from service provider.
Declaration
public override void UpdateReferences(IServiceReferenceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceReferenceProvider | provider | The service provider. |