Skip to main content

Class PolylineItemHandler

Namespace: Aurigma.DesignAtoms.Canvas.ItemHandlers
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class PolylineItemHandler : BaseRectangleItemHandler, ICloneable, IDisposable

Inheritance: System.Object -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler -> PolylineItemHandler

Implements

  • System.ICloneable
  • System.IDisposable

Inherited Members

Constructors

PolylineItemHandler

public PolylineItemHandler(IConfiguration configuration, IStateResourcesRepository stateResourcesRepository, IColorManagement colorManagement, IGmColorConverter gmColorConverter, PolylineItem item)

Properties

Item

public PolylineItem Item { get; }

Width

public float Width { get; set; }

FixedWidth

public bool FixedWidth { get; set; }

Bounds

public override RectangleF Bounds { get; }

PointsCount

public int PointsCount { get; }

Methods

GetColor

public Color GetColor(IColorProfilesProvider profilesProvider)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.ColorManagement.IColorProfilesProviderprofilesProvider
Returns

Aurigma.GraphicsMill.Color

GetItemHandlerData

public override ItemHandlerData GetItemHandlerData()
Returns

Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandlerData

Overrides

GetItemHandlerDataType

public override string GetItemHandlerDataType()
Returns

System.String

Overrides

InsertPoint

public void InsertPoint(PointF point, int index)
Parameters
TypeNameDescription
System.Drawing.PointFpoint
System.Int32index

GetPoints

public IEnumerable<PointF> GetPoints()
Returns

System.Collections.Generic.IEnumerable<System.Drawing.PointF>

AddPoint

public void AddPoint(PointF point)
Parameters
TypeNameDescription
System.Drawing.PointFpoint

SetPoint

public void SetPoint(PointF point, int index)
Parameters
TypeNameDescription
System.Drawing.PointFpoint
System.Int32index

GetPoint

public PointF GetPoint(int index)
Parameters
TypeNameDescription
System.Int32index
Returns

System.Drawing.PointF

RemovePoint

public void RemovePoint(int index)
Parameters
TypeNameDescription
System.Int32index

GetPath

protected override Path GetPath()
Returns

Aurigma.GraphicsMill.AdvancedDrawing.Path

Overrides

GetWidth

protected float GetWidth(float dpi = 72F)
Parameters
TypeNameDescription
System.Singledpi
Returns

System.Single

Was this page helpful?