C# Класс 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).
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
bottom int
left int
right int
top int

Открытые методы

Метод Описание
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

Описание методов

Contains() публичный Метод

Test whether the rectangle contains the specified point.
public Contains ( System pt ) : bool
pt System
Результат bool

Rect() публичный Метод

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
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

bottom публичное свойство

Specifies the y-coordiante of the lower-right corner of the rectangle
public int bottom
Результат int

left публичное свойство

Specifies the x-coordiante of the upper-left corner of the rectangle
public int left
Результат int

right публичное свойство

Specifies the x-coordiante of the lower-right corner of the rectangle
public int right
Результат int

top публичное свойство

Specifies the y-coordiante of the upper-left corner of the rectangle
public int top
Результат int