Csharp/C Sharp by API/System.Drawing/Size — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 18:31, 26 мая 2010

new Size

<source lang="csharp"> using System; using System.Drawing; class Class1 {

   static void Main(string[] args) {
       Point topLeft = new Point(10,10);
       Size rectangleSize = new Size(50,50);
       Point bottomRight = topLeft + rectangleSize;
       Console.WriteLine("topLeft = " + topLeft);
       Console.WriteLine("bottomRight = " + bottomRight);
       Console.WriteLine("Size = " + rectangleSize);
   }

}


 </source>