다음을 통해 공유


SimpleShape 생성자 (Int32, Int32, Int32, Int32)

새 인스턴스를 초기화는 SimpleShape 클래스의 크기와 위치를 지정 합니다.

네임스페이스:  Microsoft.VisualBasic.PowerPacks
어셈블리:  Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)

구문

‘선언
Protected Sub New ( _
    left As Integer, _
    top As Integer, _
    width As Integer, _
    height As Integer _
)
protected SimpleShape(
    int left,
    int top,
    int width,
    int height
)
protected:
SimpleShape(
    int left, 
    int top, 
    int width, 
    int height
)
new : 
        left:int * 
        top:int * 
        width:int * 
        height:int -> SimpleShape
protected function SimpleShape(
    left : int, 
    top : int, 
    width : int, 
    height : int
)

매개 변수

설명

SimpleShape 클래스는 기본 클래스에 대 한 OvalShapeRectangleShape 컨트롤입니다.이 클래스는 대개 클래스의 인스턴스를 만드는 데 사용되지 않기 때문에 일반적으로 이 생성자는 직접 호출되지 않고 파생 클래스에 의해 호출됩니다.

이 버전의 SimpleShape 생성자 도형의 크기와 위치를 설정 합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

SimpleShape 클래스

SimpleShape 오버로드

Microsoft.VisualBasic.PowerPacks 네임스페이스

기타 리소스

Line 및 Shape 컨트롤 소개(Visual Studio)

방법: LineShape 컨트롤로 선 그리기(Visual Studio)

방법: OvalShape 및 RectangleShape 컨트롤을 사용하여 도형 그리기(Visual Studio)