Show / Hide Table of Contents

Class LinetypeSegment

Base class for the three kinds of linetype segments simple, text, and shape.

Inheritance
System.Object
LinetypeSegment
LinetypeShapeSegment
LinetypeSimpleSegment
LinetypeTextSegment
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: netDxf.Tables
Assembly: CADability.dll
Syntax
public abstract class LinetypeSegment : ICloneable

Constructors

| Improve this Doc View Source

LinetypeSegment(LinetypeSegmentType, Double)

Initializes a new instance of the LinetypeSegment class.

Declaration
protected LinetypeSegment(LinetypeSegmentType type, double length)
Parameters
Type Name Description
LinetypeSegmentType type

Type of the linetype segment.

System.Double length

Dash or space length of the segment.

Properties

| Improve this Doc View Source

Length

Gets or sets the dash, dot or space length.

Declaration
public double Length { get; set; }
Property Value
Type Description
System.Double
Remarks

A positive decimal number denotes a pen-down (dash) segment of that length. A negative decimal number denotes a pen-up (space) segment of that length. A dash length of 0 draws a dot.

| Improve this Doc View Source

Type

Gets the linetype segment simple, text, or shape.

Declaration
public LinetypeSegmentType Type { get; }
Property Value
Type Description
LinetypeSegmentType

Methods

| Improve this Doc View Source

Clone()

Creates a new LinetypeSegment that is a copy of the current instance.

Declaration
public abstract object Clone()
Returns
Type Description
System.Object

A new LinetypeSegment that is a copy of this instance.

Implements

System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX