Rectangle 멤버
사각형의 위치와 크기를 나타내는 네 정수의 집합을 저장합니다. 보다 고급의 영역 기능은 Region 개체를 사용합니다.
다음 표에서는 Rectangle 형식에 의해 노출되는 멤버를 보여 줍니다.
Public 생성자
이름 | 설명 | |
---|---|---|
Rectangle | 오버로드되었습니다. 지정된 위치와 크기를 사용하여 Rectangle 클래스의 새 인스턴스를 초기화합니다. |
위쪽
Public 필드
이름 | 설명 | |
---|---|---|
Empty | 초기화되지 않은 속성이 있는 Rectangle 구조체를 나타냅니다. |
위쪽
Public 속성
이름 | 설명 | |
---|---|---|
Bottom | Rectangle 구조체의 Y 및 Height 속성 값의 합인 Y 좌표를 가져옵니다. | |
Height | 이 Rectangle 구조체의 높이를 가져오거나 설정합니다. | |
IsEmpty | 이 Rectangle의 숫자 속성이 모두 0 값을 갖는지 여부를 테스트합니다. | |
Left | 이 Rectangle 구조체의 왼쪽 가장자리의 x좌표를 가져옵니다. | |
Location | 이 Rectangle 구조체의 왼쪽 위 모퉁이의 좌표를 가져오거나 설정합니다. | |
Right | Rectangle 구조체의 X 및 Width 속성 값의 합인 X 좌표를 가져옵니다. | |
Size | 이 Rectangle의 크기를 가져오거나 설정합니다. | |
Top | 이 Rectangle 구조체의 위쪽 가장자리의 y좌표를 가져옵니다. | |
Width | 이 Rectangle 구조체의 너비를 가져오거나 설정합니다. | |
X | 이 Rectangle 구조체의 왼쪽 위 모퉁이의 x좌표를 가져오거나 설정합니다. | |
Y | 이 Rectangle 구조체의 왼쪽 위 모퉁이의 y좌표를 가져오거나 설정합니다. |
위쪽
Public 메서드
( Protected 메서드 참조)
이름 | 설명 | |
---|---|---|
Ceiling | RectangleF 값을 정수 값으로 반올림하여 지정된 RectangleF 구조체를 Rectangle 구조체로 변환합니다. | |
Contains | 오버로드되었습니다. 지정된 점이 이 Rectangle에 의해 정의된 사각형 영역 안에 들어 있는지 여부를 확인합니다. | |
Equals | 오버로드되었습니다. 재정의되었습니다. 지정된 개체가 이 Rectangle 개체와 같은지 여부를 확인합니다. | |
FromLTRB | 지정된 가장자리 위치를 가진 Rectangle 구조체를 만듭니다. | |
GetHashCode | 재정의되었습니다. 이 Rectangle 구조체의 해시 코드를 반환합니다. 해시 코드 사용에 대한 자세한 내용은 GetHashCode를 참조하십시오. | |
GetType | 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨) | |
Inflate | 오버로드되었습니다. 지정된 크기로 Rectangle 구조체를 확장합니다. | |
Intersect | 오버로드되었습니다. 두 개의 사각형의 교차 부분을 나타내는 Rectangle 구조체를 확인합니다. | |
IntersectsWith | 이 사각형이 rect와 교차되는지 여부를 확인합니다. | |
Offset | 오버로드되었습니다. 지정된 크기를 사용하여 이 사각형의 위치를 조정합니다. | |
op_Equality | 두 Rectangle 구조체가 동일한 위치와 크기를 갖는지 여부를 테스트합니다. | |
op_Inequality | 두 Rectangle 구조체의 위치와 크기가 다른지 여부를 테스트합니다. | |
ReferenceEquals | 지정한 Object 인스턴스가 동일한지 여부를 확인합니다. (Object에서 상속됨) | |
Round | RectangleF 값을 가장 가까운 정수 값으로 반올림하여 지정된 RectangleF를 Rectangle로 변환합니다. | |
ToString | 재정의되었습니다. 이 Rectangle의 특성을 사람이 인식할 수 있는 문자열로 변환합니다. | |
Truncate | RectangleF 값을 버림으로 계산하여 지정된 RectangleF를 Rectangle로 변환합니다. | |
Union | 두 개의 Rectangle 구조체의 통합 부분을 포함하는 Rectangle 구조체를 가져옵니다. |
위쪽
Protected 메서드
이름 | 설명 | |
---|---|---|
Finalize | 가비지 수집기에서 Object를 회수하기 전에 Object가 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨) | |
MemberwiseClone | 현재 Object의 단순 복사본을 만듭니다. (Object에서 상속됨) |
위쪽