Rect

General

Rect és una estructura en Aspose.3D FOSS per a .NET.

Rect.Rect creates a rectangle with the specified x, y, width, and height.

Propietats

NomTipus de productesAccésDescripció
XintLlegir/EscriureObté o fixa la coordenada X del costat esquerre del rectangle.
YintLlegir/Escriure
WidthintLlegir/EscriureObté o fixa la mida horitzontal del rectangle.
HeightintLlegir/EscriureObté o fixa la mida vertical del rectangle.
LeftintLlegeix.Retorna la coordenada X del costat esquerre del rectangle.
RightintLlegeix.
TopintLlegeix.Retorna la coordenada Y del límit superior del rectangle.
BottomintLlegeix.

Mètodes

SignaturaDescripció
Rect(x: int, y: int, width: int, height: int)Crea un rectangle amb els x, y, ampleura i alçada especificats.
Contains(x: int, y: int)Retorna true si el punt (x, y) es troba dins del rectangle.
 Català