IDrawElementRect#

class ansys.stk.core.stkx.IDrawElementRect#

Bases: IDrawElement

Define a rectangle in control coordinates.

Overview#

set

Set the rectangle coordinates.

left

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

right

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

top

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

bottom

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

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 IDrawElementRect

Property detail#

property IDrawElementRect.left: int#

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

property IDrawElementRect.right: int#

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

property IDrawElementRect.top: int#

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

property IDrawElementRect.bottom: int#

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

property IDrawElementRect.color: Color#

Color of the rectangle.

property IDrawElementRect.line_width: float#

Specify the width of the line.

property IDrawElementRect.line_style: LineStyle#

Specify the style of the line.

Method detail#

IDrawElementRect.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