다음을 통해 공유


Rectangle 구조체

사각형의 위치와 크기를 나타내는 네 정수의 집합을 저장합니다. 보다 고급의 영역 기능은 Region 개체를 사용합니다.

네임스페이스: System.Drawing
어셈블리: System.Drawing(system.drawing.dll)

구문

‘선언
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Structure Rectangle
‘사용 방법
Dim instance As Rectangle
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public struct Rectangle
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public value class Rectangle
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class Rectangle extends ValueType
JScript에서는 구조체를 사용할 수 있지만 새로 선언할 수는 없습니다.

설명

너비, 높이 및 왼쪽 위 모퉁이를 사용하여 사각형을 정의합니다.

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

Rectangle 멤버
System.Drawing 네임스페이스