C# Class SIL.Utils.Rect

Redefine Rect structure.
We can't simply use Rectangle, because the struct layout is different (Rect uses left, top, right, bottom, whereas Rectangle uses x, y, width, height).
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Свойство Type Description
bottom int
left int
right int
top int

Méthodes publiques

Méthode Description
Contains ( System pt ) : bool

Test whether the rectangle contains the specified point.

Rect ( int l, int t, int r, int b ) : System

Creates a rectangle with the specified coordinates

ToString ( ) : string

Method Details

Contains() public méthode

Test whether the rectangle contains the specified point.
public Contains ( System pt ) : bool
pt System
Résultat bool

Rect() public méthode

Creates a rectangle with the specified coordinates
public Rect ( int l, int t, int r, int b ) : System
l int left
t int top
r int right
b int bottom
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

bottom public_oe property

Specifies the y-coordiante of the lower-right corner of the rectangle
public int bottom
Résultat int

left public_oe property

Specifies the x-coordiante of the upper-left corner of the rectangle
public int left
Résultat int

right public_oe property

Specifies the x-coordiante of the lower-right corner of the rectangle
public int right
Résultat int

top public_oe property

Specifies the y-coordiante of the upper-left corner of the rectangle
public int top
Résultat int