첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;

Canvas canvas = new Canvas();

Rectangle rectangle = new Rectangle();

rectangle.Width           = 200;
rectangle.Height          = 200;
rectangle.Stroke          = Brushes.Black;
rectangle.StrokeThickness = 3;
rectangle.Fill            = Brushes.Blue;

Canvas.SetLeft(rectangle, 100);
Canvas.SetTop (rectangle, 100);

canvas.Children.Add(rectangle);

double left = Canvas.GetLeft(rectangle);
double top  = Canvas.GetTop (rectangle);
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요