Class MeasureLine
Implement base line node object with display distance between two endpoint.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class MeasureLine : Line, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDisposable, IEndPointContainer, IGraphEdge, IDeserializationCallback
Constructors
MeasureLine()
Initializes a new instance of the MeasureLine class.
Declaration
public MeasureLine()
MeasureLine(MeasureLine)
Initializes a new instance of the MeasureLine class.
Declaration
public MeasureLine(MeasureLine src)
Parameters
Type | Name | Description |
---|---|---|
MeasureLine | src | The LineNode instance. |
MeasureLine(PointF, PointF)
Initializes a new instance of the MeasureLine class.
Declaration
public MeasureLine(PointF ptStart, PointF ptEnd)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptStart | The start point. |
System.Drawing.PointF | ptEnd | The end point. |
MeasureLine(PointF[])
Initializes a new instance of the MeasureLine class.
Declaration
public MeasureLine(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | The array of points. |
MeasureLine(SerializationInfo, StreamingContext)
Initializes a new instance of the MeasureLine class.
Declaration
protected MeasureLine(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
MeasureUnits
Gets or sets the measure units.
Declaration
public MeasureUnits MeasureUnits { get; set; }
Property Value
Type | Description |
---|---|
MeasureUnits | The measure units. |
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
Clone()
Clones this instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | The object. |
Overrides
DrawPath(Graphics)
Draws the path to specified graphics.
Declaration
protected override void DrawPath(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Overrides
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
OnDeserialization(Object)
Runs when the entire object graph has been deserialized.
Declaration
public void OnDeserialization(object sender)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The object that initiated the callback. The functionality for this parameter is not currently implemented. |