DrawElementLine#

class ansys.stk.core.stkx.DrawElementLine#

Define a line in window coordinates.

Overview#

set

Set the rectangle coordinates.

left

The x-coordinate of the left edge of this line.

right

The x-coordinate of the right edge of this line.

top

The y-coordinate of the top edge of this line.

bottom

The y-coordinate of the bottom edge of this line.

color

Color of the rectangle.

line_width

Specify the width of the line.

line_style

Specify the style of the line.

Import detail#

from ansys.stk.core.stkx import DrawElementLine

Property detail#

property DrawElementLine.left: int#

The x-coordinate of the left edge of this line.

property DrawElementLine.right: int#

The x-coordinate of the right edge of this line.

property DrawElementLine.top: int#

The y-coordinate of the top edge of this line.

property DrawElementLine.bottom: int#

The y-coordinate of the bottom edge of this line.

property DrawElementLine.color: Color#

Color of the rectangle.

property DrawElementLine.line_width: float#

Specify the width of the line.

property DrawElementLine.line_style: LineStyle#

Specify the style of the line.

Method detail#

DrawElementLine.set(self, left: int, top: int, right: int, bottom: int) None#

Set the rectangle coordinates.

Parameters:

left : int

top : int

right : int

bottom : int

Returns:

None