コード例 #1
0
 /// <summary>
 /// CSharpToolBarButtonクラスのインスタンスを初期化
 /// </summary>
 public CSharpToolBarButton()
 {
     //
     // TODO: コンストラクタ ロジックをここに追加してください。
     //
     imageIndex = -1;
     bounds     = Rectangle.Empty;
     text       = String.Empty;
     style      = CSharpToolBarButtonStyle.Button;
     toolBar    = null;
     tag        = null;
 }
コード例 #2
0
        /// <summary>
        /// CSharpToolBarButtonクラスのインスタンスを初期化
        /// </summary>
        /// <param name="button">コピー元のボタン</param>
        private CSharpToolBarButton(CSharpToolBarButton button)
            : this()
        {
            if (button == null)
            {
                throw new ArgumentNullException("button");
            }

            this.text       = button.text;
            this.imageIndex = button.imageIndex;
            this.style      = button.style;
            this.tag        = button.tag;
        }