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

bffb04ba a12e 3b72 a76f 082415b8775c

haplokuon edited this page May 6, 2023 · 1 revision

LinetypeShapeSegment(String, ShapeStyle) 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
)

VB

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

C++

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

F#

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

Parameters

  String
Shape name of the linetype segment.
  ShapeStyle
File where the shape of the linetype segment is defined.

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