?? doublerect.cs
字號:
using System;
using System.Drawing ;
namespace RectDraw
{
/// <summary>
/// Summary description for DoubleRect.
/// </summary>
public class DoubleRect:Rectangle
{
private Pen rdPen;
public DoubleRect(int x, int y, int w, int h):base(x,y,w,h)
{
rdPen = new Pen (Color.Red, 2);
}
//-----------------
public override void draw(Graphics g) {
base.draw (g); //g.DrawRectangle (rpen, x, y, w, h);
g.DrawRectangle (rdPen, x +5, y+5, w, h);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -