mxcad_3d API 文档 / Mx3dAspectLine
Class: Mx3dAspectLine
表示线样式。
Hierarchy
↳
Mx3dAspectLine
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dAspectLine(theColor, theType, theWidth)
构造函数,创建一个指定颜色,线型,线宽的线样式对象。
Parameters
| Name | Type | Description |
|---|---|---|
theColor | Mx3dGeColor | 颜色。 |
theType | MxTypeOfLine | 线型。 |
theWidth | number | 线宽。 |
Overrides
Mx3dAspectObject.constructor
Methods
SetColor
▸ SetColor(theColor): void
设置线样式对象的颜色。
Parameters
| Name | Type | Description |
|---|---|---|
theColor | Mx3dGeColor | 要设置的颜色对象(Mx3dGeColor)。 |
Returns
void
SetTypeOfLine
▸ SetTypeOfLine(theType): void
设置线样式对象的线型。
Parameters
| Name | Type | Description |
|---|---|---|
theType | MxTypeOfLine | 线型。 |
Returns
void
SetWidth
▸ SetWidth(theWidth): void
设置线样式对象的线宽。
Parameters
| Name | Type | Description |
|---|---|---|
theWidth | number | 线宽。 |
Returns
void