⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hand.cs

📁 中文名:Windows Forms 程序设计 英文名:Windows Forms Programming in c# 作者: Chris Sells 翻译: 荣耀 蒋贤哲 出版社:人民
💻 CS
字号:
#region Using directives

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Text;

#endregion

namespace AlarmClockControlLibrary {

  [TypeConverter(typeof(HandConverter))]
  public class Hand {
    private Color color = Color.Black;
    private int width = 1;
    public Hand() {}
    public Hand(Color color, int width) {
      this.color = color;
      this.width = width;
    }

    //[System.ComponentModel.NotifyParentPropertyAttribute(true)]
    [DescriptionAttribute("Sets the color of the clock Hand.")]
    public Color Color {
      get { return this.color; }
      set { this.color = value; }
    }

    //[System.ComponentModel.NotifyParentPropertyAttribute(true)]
    [DescriptionAttribute("Sets the width of the clock Hand.")]
    public int Width {
      get { return this.width; }
      set { this.width = value; }
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -