Partilhar via


Construtor SimpleShape (Int32, Int32, Int32, Int32)

Inicializa uma nova instância do SimpleShape classe, especificando seu tamanho e local.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (em Microsoft.VisualBasic.PowerPacks.Vs.dll)

Sintaxe

'Declaração
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
)

Parâmetros

  • left
    Tipo: Int32
  • top
    Tipo: Int32
  • width
    Tipo: Int32

    Um Integer que representa a largura (em pixels) do SimpleShape.

  • height
    Tipo: Int32

    Um Integer que representa a altura (em pixels) do SimpleShape.

Comentários

O SimpleShape classe é a classe base para OvalShape e RectangleShape controles. Como essa classe não é normalmente usada para criar uma instância da classe, este construtor não normalmente é chamado diretamente, mas sim chamado por uma classe derivada.

Esta versão do SimpleShape construtor define o local e o tamanho da forma.

Segurança do .NET Framework

Consulte também

Referência

SimpleShape Classe

Sobrecargas SimpleShape

Namespace Microsoft.VisualBasic.PowerPacks

Outros recursos

Introdução aos controles de linha e forma (Visual Studio)

Como desenhar linhas com o controle LineShape (Visual Studio)

Como desenhar formas com os controles OvalShape e RectangleShape (Visual Studio)