Show / Hide Table of Contents

Class MLineStyleElement

Represent each of the elements that make up a MLineStyle.

Inheritance
System.Object
MLineStyleElement
Implements
System.IComparable<MLineStyleElement>
System.ICloneable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Objects
Assembly: CADability.dll
Syntax
public class MLineStyleElement : IComparable<MLineStyleElement>, ICloneable

Constructors

| Improve this Doc View Source

MLineStyleElement(Double)

Initializes a new instance of the MLineStyleElement class.

Declaration
public MLineStyleElement(double offset)
Parameters
Type Name Description
System.Double offset

Element offset.

| Improve this Doc View Source

MLineStyleElement(Double, AciColor, Linetype)

Initializes a new instance of the MLineStyleElement class.

Declaration
public MLineStyleElement(double offset, AciColor color, Linetype linetype)
Parameters
Type Name Description
System.Double offset

Element offset.

AciColor color

Element color.

Linetype linetype

Element line type.

Properties

| Improve this Doc View Source

Color

Gets or sets the element color.

Declaration
public AciColor Color { get; set; }
Property Value
Type Description
AciColor
Remarks

AutoCad2000 DXF version does not support true colors for MLineStyleElement color.

| Improve this Doc View Source

Linetype

Gets or sets the element line type.

Declaration
public Linetype Linetype { get; set; }
Property Value
Type Description
Linetype
| Improve this Doc View Source

Offset

Gets or sets the element offset.

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

Methods

| Improve this Doc View Source

Clone()

Creates a MLineStyleElement that is a copy of the current instance.

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

A new MLineStyleElement is a copy of this instance.

| Improve this Doc View Source

CompareTo(MLineStyleElement)

Compares the current object with another object of the same type.

Declaration
public int CompareTo(MLineStyleElement other)
Parameters
Type Name Description
MLineStyleElement other

An object to compare with this object.

Returns
Type Description
System.Int32

The MLineStyleElements are ordered from larger to smaller offset values. A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the other parameter. Zero This object is equal to other. Greater than zero This object is greater than other.

| Improve this Doc View Source

Equals(MLineStyleElement)

Check if two MLineStyleElement are equal.

Declaration
public bool Equals(MLineStyleElement other)
Parameters
Type Name Description
MLineStyleElement other

Another MLineStyleElement to compare to.

Returns
Type Description
System.Boolean

True if two MLineStyleElement are equal or false in any other case.

Remarks

Two MLineStyleElement are considered equals if their offsets are the same.

| Improve this Doc View Source

Equals(Object)

Check if two MLineStyleElement are equal.

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other

Another MLineStyleElement to compare to.

Returns
Type Description
System.Boolean

True if two MLineStyleElement are equal or false in any other case.

Overrides
System.Object.Equals(System.Object)
Remarks

Two MLineStyleElement are considered equals if their offsets are the same.

| Improve this Doc View Source

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer that is the hash code for this instance.

Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

OnLinetypeChangedEvent(Linetype, Linetype)

Declaration
protected virtual Linetype OnLinetypeChangedEvent(Linetype oldLinetype, Linetype newLinetype)
Parameters
Type Name Description
Linetype oldLinetype
Linetype newLinetype
Returns
Type Description
Linetype
| Improve this Doc View Source

ToString()

Converts the value of this instance to its equivalent string representation.

Declaration
public override string ToString()
Returns
Type Description
System.String

The string representation.

Overrides
System.Object.ToString()

Events

| Improve this Doc View Source

LinetypeChanged

Declaration
public event MLineStyleElement.LinetypeChangedEventHandler LinetypeChanged
Event Type
Type Description
MLineStyleElement.LinetypeChangedEventHandler

Implements

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