This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 409
cf290e76 53dd 464a a571 5375abfde714
haplokuon edited this page May 6, 2023
·
1 revision
LinetypeShapeSegment(String, ShapeStyle, Double, Vector2, LinetypeSegmentRotationType, Double, Double) Constructor
netDxf 3.0.0 Library
Initializes a new instance of the LinetypeShapeSegment
class.
Namespace: netDxf.Tables
Assembly: netDxf (in netDxf.dll) Version: 3.0.0
C#
public LinetypeShapeSegment(
string name,
ShapeStyle style,
double length,
Vector2 offset,
LinetypeSegmentRotationType rotationType,
double rotation,
double scale
)
VB
Public Sub New (
name As String,
style As ShapeStyle,
length As Double,
offset As Vector2,
rotationType As LinetypeSegmentRotationType,
rotation As Double,
scale As Double
)
C++
public:
LinetypeShapeSegment(
String^ name,
ShapeStyle^ style,
double length,
Vector2 offset,
LinetypeSegmentRotationType rotationType,
double rotation,
double scale
)
F#
new :
name : string *
style : ShapeStyle *
length : float *
offset : Vector2 *
rotationType : LinetypeSegmentRotationType *
rotation : float *
scale : float -> LinetypeShapeSegment
- String
- Shape name of the linetype segment.
- ShapeStyle
- File where the shape of the linetype segment is defined.
- Double
- Dash, dot, or space length of the linetype segment.
- Vector2
- Shift of the shape along the line.
- LinetypeSegmentRotationType
- Type of rotation defined by the rotation value.
- Double
- Rotation of the shape.
- Double
- Scale of the shape.
The shape must be defined in the .shx shape definitions file.
The DXF instead of saving the shape name, as the Shape entity or the shape linetype segments definition in a .lin file, it stores the shape number. Therefore when saving a DXF file the shape number will be obtained reading the .shp file.
It is required that the equivalent .shp file to be also present in the same folder or one of the support folders defined in the DxfDocument.
LinetypeShapeSegment Class
LinetypeShapeSegment Overload
netDxf.Tables Namespace