ControlPaint.DrawBorder3D Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Desenha uma borda de estilo tridimensional num controlo.
Sobrecargas
| Name | Description |
|---|---|
| DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle, Border3DSide) |
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica e lateral especificadas, e dentro dos limites especificados num controlo. |
| DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle) |
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica especificada e dentro dos limites especificados num controlo. |
| DrawBorder3D(Graphics, Int32, Int32, Int32, Int32) |
Desenha uma borda de estilo tridimensional na superfície gráfica especificada e dentro dos limites especificados num controlo. |
| DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide) |
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica e laterais especificadas, e dentro dos limites especificados num controlo. |
| DrawBorder3D(Graphics, Rectangle, Border3DStyle) |
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica especificada e dentro dos limites especificados num controlo. |
| DrawBorder3D(Graphics, Rectangle) |
Desenha uma borda de estilo tridimensional na superfície gráfica especificada e dentro dos limites especificados num controlo. |
DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle, Border3DSide)
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica e lateral especificadas, e dentro dos limites especificados num controlo.
public:
static void DrawBorder3D(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::Border3DStyle style, System::Windows::Forms::Border3DSide sides);
public static void DrawBorder3D(System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.Border3DStyle style, System.Windows.Forms.Border3DSide sides);
static member DrawBorder3D : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.Border3DStyle * System.Windows.Forms.Border3DSide -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, style As Border3DStyle, sides As Border3DSide)
Parâmetros
- x
- Int32
A coordenada x do canto superior esquerdo do retângulo da borda.
- y
- Int32
A coordenada y do canto superior esquerdo do retângulo da borda.
- width
- Int32
A largura do retângulo da borda.
- height
- Int32
A altura do retângulo da borda.
- style
- Border3DStyle
Um dos Border3DStyle valores que especifica o estilo da borda.
- sides
- Border3DSide
O Border3DSide do retângulo para desenhar a borda.
Exemplos
O seguinte exemplo de código demonstra a utilização de um dos DrawBorder3D métodos. Para executar este exemplo, cole o código seguinte numa forma que importe os namespaces System.Windows.Forms e System.Drawing. Certifique-se de que o evento do Paint formulário está associado ao gestor de eventos neste exemplo.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
Rectangle borderRectangle = this->ClientRectangle;
borderRectangle.Inflate( -10, -10 );
ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) Handles MyBase.Paint
Dim borderRectangle As Rectangle = Me.ClientRectangle
borderRectangle.Inflate(-10, -10)
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
Border3DStyle.Raised)
End Sub
Ver também
Aplica-se a
DrawBorder3D(Graphics, Int32, Int32, Int32, Int32, Border3DStyle)
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica especificada e dentro dos limites especificados num controlo.
public:
static void DrawBorder3D(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::Border3DStyle style);
public static void DrawBorder3D(System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.Border3DStyle style);
static member DrawBorder3D : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.Border3DStyle -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, style As Border3DStyle)
Parâmetros
- x
- Int32
A coordenada x do canto superior esquerdo do retângulo da borda.
- y
- Int32
A coordenada y do canto superior esquerdo do retângulo da borda.
- width
- Int32
A largura do retângulo da borda.
- height
- Int32
A altura do retângulo da borda.
- style
- Border3DStyle
Um dos Border3DStyle valores que especifica o estilo da borda.
Exemplos
O seguinte exemplo de código demonstra a utilização de um dos DrawBorder3D métodos. Para executar este exemplo, cole o código seguinte numa forma que importe os namespaces System.Windows.Forms e System.Drawing. Certifique-se de que o evento do Paint formulário está associado ao gestor de eventos neste exemplo.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
Rectangle borderRectangle = this->ClientRectangle;
borderRectangle.Inflate( -10, -10 );
ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) Handles MyBase.Paint
Dim borderRectangle As Rectangle = Me.ClientRectangle
borderRectangle.Inflate(-10, -10)
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
Border3DStyle.Raised)
End Sub
Ver também
Aplica-se a
DrawBorder3D(Graphics, Int32, Int32, Int32, Int32)
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
Desenha uma borda de estilo tridimensional na superfície gráfica especificada e dentro dos limites especificados num controlo.
public:
static void DrawBorder3D(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height);
public static void DrawBorder3D(System.Drawing.Graphics graphics, int x, int y, int width, int height);
static member DrawBorder3D : System.Drawing.Graphics * int * int * int * int -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer)
Parâmetros
- x
- Int32
A coordenada x do canto superior esquerdo do retângulo da borda.
- y
- Int32
A coordenada y do canto superior esquerdo do retângulo da borda.
- width
- Int32
A largura do retângulo da borda.
- height
- Int32
A altura do retângulo da borda.
Exemplos
O seguinte exemplo de código demonstra a utilização de um dos DrawBorder3D métodos. Para executar este exemplo, cole o código seguinte numa forma que importe os namespaces System.Windows.Forms e System.Drawing. Certifique-se de que o evento do Paint formulário está associado ao gestor de eventos neste exemplo.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
Rectangle borderRectangle = this->ClientRectangle;
borderRectangle.Inflate( -10, -10 );
ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) Handles MyBase.Paint
Dim borderRectangle As Rectangle = Me.ClientRectangle
borderRectangle.Inflate(-10, -10)
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
Border3DStyle.Raised)
End Sub
Observações
O Border3DStyle.Etched estilo é usado por defeito para desenhar a borda.
Aplica-se a
DrawBorder3D(Graphics, Rectangle, Border3DStyle, Border3DSide)
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica e laterais especificadas, e dentro dos limites especificados num controlo.
public:
static void DrawBorder3D(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::Border3DStyle style, System::Windows::Forms::Border3DSide sides);
public static void DrawBorder3D(System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.Border3DStyle style, System.Windows.Forms.Border3DSide sides);
static member DrawBorder3D : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.Border3DStyle * System.Windows.Forms.Border3DSide -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, rectangle As Rectangle, style As Border3DStyle, sides As Border3DSide)
Parâmetros
- style
- Border3DStyle
Um dos Border3DStyle valores que especifica o estilo da borda.
- sides
- Border3DSide
Um dos Border3DSide valores que especifica o lado do retângulo para desenhar a borda.
Exemplos
O seguinte exemplo de código demonstra a utilização de um dos DrawBorder3D métodos. Para executar este exemplo, cole o código seguinte numa forma que importe os namespaces System.Windows.Forms e System.Drawing. Certifique-se de que o evento do Paint formulário está associado ao gestor de eventos neste exemplo.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
Rectangle borderRectangle = this->ClientRectangle;
borderRectangle.Inflate( -10, -10 );
ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) Handles MyBase.Paint
Dim borderRectangle As Rectangle = Me.ClientRectangle
borderRectangle.Inflate(-10, -10)
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
Border3DStyle.Raised)
End Sub
Ver também
Aplica-se a
DrawBorder3D(Graphics, Rectangle, Border3DStyle)
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
Desenha uma borda de estilo tridimensional com o estilo especificado, na superfície gráfica especificada e dentro dos limites especificados num controlo.
public:
static void DrawBorder3D(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::Border3DStyle style);
public static void DrawBorder3D(System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.Border3DStyle style);
static member DrawBorder3D : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.Border3DStyle -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, rectangle As Rectangle, style As Border3DStyle)
Parâmetros
- style
- Border3DStyle
Um dos Border3DStyle valores que especifica o estilo da borda.
Exemplos
O seguinte exemplo de código demonstra a utilização de um dos DrawBorder3D métodos. Para executar este exemplo, cole o código seguinte numa forma que importe os namespaces System.Windows.Forms e System.Drawing. Certifique-se de que o evento do Paint formulário está associado ao gestor de eventos neste exemplo.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
Rectangle borderRectangle = this->ClientRectangle;
borderRectangle.Inflate( -10, -10 );
ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) Handles MyBase.Paint
Dim borderRectangle As Rectangle = Me.ClientRectangle
borderRectangle.Inflate(-10, -10)
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
Border3DStyle.Raised)
End Sub
Ver também
Aplica-se a
DrawBorder3D(Graphics, Rectangle)
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
- Origem:
- ControlPaint.cs
Desenha uma borda de estilo tridimensional na superfície gráfica especificada e dentro dos limites especificados num controlo.
public:
static void DrawBorder3D(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle);
public static void DrawBorder3D(System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle);
static member DrawBorder3D : System.Drawing.Graphics * System.Drawing.Rectangle -> unit
Public Shared Sub DrawBorder3D (graphics As Graphics, rectangle As Rectangle)
Parâmetros
Exemplos
O seguinte exemplo de código demonstra a utilização de um dos DrawBorder3D métodos. Para executar este exemplo, cole o código seguinte numa forma que importe os namespaces System.Windows.Forms e System.Drawing. Certifique-se de que o evento do Paint formulário está associado ao gestor de eventos neste exemplo.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
void Form1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
Rectangle borderRectangle = this->ClientRectangle;
borderRectangle.Inflate( -10, -10 );
ControlPaint::DrawBorder3D( e->Graphics, borderRectangle, Border3DStyle::Raised );
}
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
' Handle the Form's Paint event to draw a 3D three-dimensional
' raised border just inside the border of the frame.
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As PaintEventArgs) Handles MyBase.Paint
Dim borderRectangle As Rectangle = Me.ClientRectangle
borderRectangle.Inflate(-10, -10)
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle, _
Border3DStyle.Raised)
End Sub
Observações
O Border3DStyle.Etched estilo é usado por defeito para desenhar a borda.