Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

d02e9ac9 c584 33e5 5207 85b0da7ecbfa

haplokuon edited this page May 6, 2023 · 1 revision

LinetypeShapeSegment(String, ShapeStyle, Double) Constructor

netDxf 3.0.0 Library

Initializes a new instance of the LinetypeShapeSegment class.

Definition

Namespace: netDxf.Tables
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public LinetypeShapeSegment(
	string name,
	ShapeStyle style,
	double length
)

VB

Public Sub New ( 
	name As String,
	style As ShapeStyle,
	length As Double
)

C++

public:
LinetypeShapeSegment(
	String^ name, 
	ShapeStyle^ style, 
	double length
)

F#

new : 
        name : string * 
        style : ShapeStyle * 
        length : float -> LinetypeShapeSegment

Parameters

  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.

Remarks

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.

See Also

Reference

LinetypeShapeSegment Class
LinetypeShapeSegment Overload
netDxf.Tables Namespace

Clone this wiki locally