Idioma

AdjustableArrowCap Construtores

Definição

Inicializa uma nova instância da AdjustableArrowCap classe com a largura e altura especificadas.

Sobrecargas

Name Descrição
AdjustableArrowCap(Single, Single)

Inicializa uma nova instância da AdjustableArrowCap classe com a largura e altura especificadas. As tampas finais das setas criadas com este construtor estão sempre preenchidas.

AdjustableArrowCap(Single, Single, Boolean)

Inicializa uma nova instância da AdjustableArrowCap classe com as propriedades especificadas de largura, altura e preenchimento. Se a tampa final da seta é preenchida depende do argumento passado ao isFilled parâmetro.

AdjustableArrowCap(Single, Single)

Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs

Inicializa uma nova instância da AdjustableArrowCap classe com a largura e altura especificadas. As tampas finais das setas criadas com este construtor estão sempre preenchidas.

public:
 AdjustableArrowCap(float width, float height);
public AdjustableArrowCap(float width, float height);
new System.Drawing.Drawing2D.AdjustableArrowCap : single * single -> System.Drawing.Drawing2D.AdjustableArrowCap
Public Sub New (width As Single, height As Single)

Parâmetros

width
Single

A largura da flecha.

height
Single

A altura da flecha.

Exemplos

O exemplo seguinte foi concebido para uso com Windows Forms e requer PaintEventArgse, um objeto de evento OnPaint. O código executa as seguintes ações:

public:
   void ConstructAdjArrowCap1( PaintEventArgs^ e )
   {
      AdjustableArrowCap^ myArrow = gcnew AdjustableArrowCap( 6,6 );
      Pen^ capPen = gcnew Pen( Color::Black );
      capPen->CustomStartCap = myArrow;
      capPen->CustomEndCap = myArrow;
      e->Graphics->DrawLine( capPen, 50, 50, 200, 50 );
   }
public void ConstructAdjArrowCap1(PaintEventArgs e)
{     
    AdjustableArrowCap myArrow = new AdjustableArrowCap(6, 6);
    Pen capPen = new Pen(Color.Black);
    capPen.CustomStartCap = myArrow;
    capPen.CustomEndCap = myArrow;
    e.Graphics.DrawLine(capPen, 50, 50, 200, 50);
}
Public Sub ConstructAdjArrowCap1(ByVal e As PaintEventArgs)
    Dim myArrow As New AdjustableArrowCap(6, 6)
    Dim customArrow As CustomLineCap = myArrow
    Dim capPen As New Pen(Color.Black)
    capPen.CustomStartCap = myArrow
    capPen.CustomEndCap = myArrow
    e.Graphics.DrawLine(capPen, 50, 50, 200, 50)
End Sub

Aplica-se a

AdjustableArrowCap(Single, Single, Boolean)

Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs
Origem:
AdjustableArrowCap.cs

Inicializa uma nova instância da AdjustableArrowCap classe com as propriedades especificadas de largura, altura e preenchimento. Se a tampa final da seta é preenchida depende do argumento passado ao isFilled parâmetro.

public:
 AdjustableArrowCap(float width, float height, bool isFilled);
public AdjustableArrowCap(float width, float height, bool isFilled);
new System.Drawing.Drawing2D.AdjustableArrowCap : single * single * bool -> System.Drawing.Drawing2D.AdjustableArrowCap
Public Sub New (width As Single, height As Single, isFilled As Boolean)

Parâmetros

width
Single

A largura da flecha.

height
Single

A altura da flecha.

isFilled
Boolean

true para preencher a tampa da flecha; caso contrário, false.

Exemplos

O exemplo seguinte foi concebido para uso com Windows Forms e requer PaintEventArgse, um objeto de evento OnPaint. O código executa as seguintes ações:

public:
   void ConstructAdjArrowCap2( PaintEventArgs^ e )
   {
      AdjustableArrowCap^ myArrow = gcnew AdjustableArrowCap( 6,6,false );
      Pen^ capPen = gcnew Pen( Color::Black );
      capPen->CustomStartCap = myArrow;
      capPen->CustomEndCap = myArrow;
      e->Graphics->DrawLine( capPen, 50, 50, 200, 50 );
   }
public void ConstructAdjArrowCap2(PaintEventArgs e)
{     
    AdjustableArrowCap myArrow = new AdjustableArrowCap(6, 6, false);
    Pen capPen = new Pen(Color.Black);
    capPen.CustomStartCap = myArrow;
    capPen.CustomEndCap = myArrow;
    e.Graphics.DrawLine(capPen, 50, 50, 200, 50);
}
Public Sub ConstructAdjArrowCap2(ByVal e As PaintEventArgs)
    Dim myArrow As New AdjustableArrowCap(6, 6, False)
    Dim customArrow As CustomLineCap = myArrow
    Dim capPen As New Pen(Color.Black)
    capPen.CustomStartCap = myArrow
    capPen.CustomEndCap = myArrow
    e.Graphics.DrawLine(capPen, 50, 50, 200, 50)
End Sub

Aplica-se a