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

eb9d9fc7 dc37 3b35 7809 c731eaa7f47b

haplokuon edited this page Jun 28, 2023 · 2 revisions

Linetype Class

netDxf 3.0.0 Library

Represents a line type. Simple and complex line types are supported.

Definition

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

C#

public class Linetype : TableObject

VB

Public Class Linetype
	Inherits TableObject

C++

public ref class Linetype : public TableObject

F#

type Linetype = 
    class
        inherit TableObject
    end
Inheritance Object → DxfObjectTableObject → Linetype

Constructors

Linetype(String) Initializes a new instance of the Linetype class.
Linetype(String, IEnumerable(LinetypeSegment)) Initializes a new instance of the Linetype class.
Linetype(String, String) Initializes a new instance of the Linetype class.
Linetype(String, IEnumerable(LinetypeSegment), String) Initializes a new instance of the Linetype class.

Properties

ByBlock Gets the ByBlock line type.
ByLayer Gets the ByLayer line type.
Center Gets a predefined center line.
CodeName Gets the DXF object name.
(Inherited from DxfObject)
Continuous Gets the predefined continuous line.
DashDot Gets a predefined dash dot line.
Dashed Gets a predefined dashed line
Description Gets or sets the line type description.
Dot Gets a predefined dot line
Handle Gets the handle assigned to the DXF object.
(Inherited from DxfObject)
IsByBlock Defines if the line type is defined by block.
IsByLayer Defines if the line type is defined by layer.
IsReserved Gets if the table object is reserved and cannot be deleted.
(Inherited from TableObject)
Name Gets the name of the table object.
(Inherited from TableObject)
Owner Gets the owner of the actual DXF object.
Segments Gets the list of line type segments.
XData Gets the entity extended data.
(Inherited from DxfObject)

Methods

Clone() Creates a new Linetype that is a copy of the current instance.
(Overrides TableObject.Clone())
Clone(String) Creates a new Linetype that is a copy of the current instance.
(Overrides TableObject.Clone(String))
CompareTo(Object) Compares the current TableObject with another TableObject of the same type.
(Inherited from TableObject)
CompareTo(TableObject) Compares the current TableObject with another TableObject of the same type.
(Inherited from TableObject)
Equals(Object) Check if two TableObject are equal.
(Inherited from TableObject)
Equals(TableObject) Check if two TableObject are equal.
(Inherited from TableObject)
GetHashCode Returns the hash code for this instance.
(Inherited from TableObject)
GetReferences Gets the list of DxfObjects referenced by this instance.
(Overrides TableObject.GetReferences())
GetType Gets the Type of the current instance.
(Inherited from Object)
HasReferences Checks if this instance has been referenced by other DxfObjects.
(Overrides TableObject.HasReferences())
Length Gets the total length of the line type.
Load Creates a new line type from the definition in a LIN file.
NamesFromFile Gets the list of linetype names defined in a LIN file.
Save Saves the current linetype to the specified file, if the file does not exist it creates a new one.
ToString Converts the value of this instance to its equivalent string representation.
(Inherited from TableObject)

Events

LinetypeSegmentAdded  
LinetypeSegmentRemoved  
LinetypeShapeSegmentStyleChanged  
LinetypeTextSegmentStyleChanged  
NameChanged
(Inherited from TableObject)
XDataAddAppReg
(Inherited from DxfObject)
XDataRemoveAppReg
(Inherited from DxfObject)

Fields

ByBlockName ByBlock line type name.
ByLayerName ByLayer line type name.
DefaultName Default line type name.

See Also

Reference

netDxf.Tables Namespace

Clone this wiki locally