[mxcad_3d API Document](../README. md)/Mx3dAspectLine
Class: Mx3dAspectLine
Indicate the line style.
Hierarchy
↳
Mx3dAspectLine
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dAspectLine(theColor
, theType
, theWidth
)
Constructor, create a line style object that specifies color, line type, and line width.
Parameters
Name | Type | Description |
---|---|---|
TheColor | [Mx3dGeColor] (Mx3dGeColor. md) | Color |
TheType | [MxTypeOfLine] (../enums/MdGe. MxTypeOfLine. md) | Line type |
TheWidth | Number | Line Width |
Overrides
Mx3dAspectObject.constructor
Methods
SetColor
▸ SetColor(theColor
): void
Set the color of the line style object.
Parameters
Name | Type | Description |
---|---|---|
TheColor | [Mx3dGeColor] (Mx3dGeColor. md) | The color object to be set (Mx3dGeColor) |
Returns
void
SetTypeOfLine
▸ SetTypeOfLine(theType
): void
Set the line type of the line style object.
Parameters
Name | Type | Description |
---|---|---|
TheType | [MxTypeOfLine] (../enums/MdGe. MxTypeOfLine. md) | Line type |
Returns
void
SetWidth
▸ SetWidth(theWidth
): void
Set the line width of the line style object.
Parameters
Name | Type | Description |
---|---|---|
TheWidth | Number | Line Width |
Returns
void