Skip to content

mxcad_3d API 文档 / Mx3dAspectLine

Class: Mx3dAspectLine ​

表示线样式。

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dAspectLine(theColor, theType, theWidth)

构造函数,创建一个指定颜色,线型,线宽的线样式对象。

Parameters ​

NameTypeDescription
theColorMx3dGeColor颜色。
theTypeMxTypeOfLine线型。
theWidthnumber线宽。

Overrides ​

Mx3dAspectObject.constructor

Methods ​

SetColor ​

▸ SetColor(theColor): void

设置线样式对象的颜色。

Parameters ​

NameTypeDescription
theColorMx3dGeColor要设置的颜色对象(Mx3dGeColor)。

Returns ​

void


SetTypeOfLine ​

▸ SetTypeOfLine(theType): void

设置线样式对象的线型。

Parameters ​

NameTypeDescription
theTypeMxTypeOfLine线型。

Returns ​

void


SetWidth ​

▸ SetWidth(theWidth): void

设置线样式对象的线宽。

Parameters ​

NameTypeDescription
theWidthnumber线宽。

Returns ​

void