|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
Point (Estructura)
Espacio de nombres: System.Drawing
Ensamblado: System.Drawing (en System.Drawing.dll)
El tipo Point expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | Point(Int32) | |
![]() | Point(Size) | |
![]() | Point(Int32, Int32) |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() | Add | |
![]() ![]() | Ceiling | |
![]() | Equals | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | Offset(Point) | |
![]() | Offset(Int32, Int32) | |
![]() ![]() | Round | |
![]() ![]() | Subtract | |
![]() | ToString | |
![]() ![]() | Truncate |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() | Addition | |
![]() ![]() | Equality | |
![]() ![]() | Explicit(Point to Size) | |
![]() ![]() | Implicit(Point to PointF) | |
![]() ![]() | Inequality | |
![]() ![]() | Subtraction |
private void CreatePointsAndSizes(PaintEventArgs e) { // Create the starting point. Point startPoint = new Point(subtractButton.Size); // Use the addition operator to get the end point. Point endPoint = startPoint + new Size(140, 150); // Draw a line between the points. e.Graphics.DrawLine(SystemPens.Highlight, startPoint, endPoint); // Convert the starting point to a size and compare it to the // subtractButton size. Size buttonSize = (Size)startPoint; if (buttonSize == subtractButton.Size) // If the sizes are equal, tell the user. { e.Graphics.DrawString("The sizes are equal.", new Font(this.Font, FontStyle.Italic), Brushes.Indigo, 10.0F, 65.0F); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
