Source/Wizard/WizardButtonsEventArgs.cs

(完整代码) 1KB

using System;
using System.Text;
using System.Drawing;

namespace DevComponents.DotNetBar
{
    /// <summary>
    /// Provides data for LayoutWizardButtons event.
    /// </summary>
    public class WizardButtonsLayoutEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets bounds of Back button.
        /// </summary>
        public Rectangle BackButtonBounds = Rectangle.Empty;

        /// <summary>
        /// Gets or sets bounds of Next button.
        /// </summary>
        public Rectangle NextButtonBounds = Rectangle.Empty;

        /// <summary>
        /// Gets or sets bounds of Finish button.
        /// </summary>
        public Rectangle FinishButtonBounds = Rectangle.Empty;

        /// <summary>
        /// Gets or sets bounds of Cancel button.
        /// </summary>
        public Rectangle CancelButtonBounds = Rectangle.Empty;

        /// <summary>
        /// Gets or sets bounds of Help button.
        /// </summary>
        public Rectangle HelpButtonBounds = Rectangle.Empty;

        /// <summary>
        /// Creates new instance of the class.
        /// </summary>
        public WizardButtonsLayoutEventArgs() { }

        /// <summary>
        /// Creates new instance of the class and initializes it with default values.
        /// </summary>
        public WizardButtonsLayoutEventArgs(Rectangle backBounds, Rectangle nextBounds, Rectangle finishBounds, Rectangle cancelBounds, Rectangle helpBounds)
        {
            this.BackButtonBounds = backBounds;
            this.NextButtonBounds = nextBounds;
            this.FinishButtonBounds = finishBounds;
            this.CancelButtonBounds = cancelBounds;
            this.HelpButtonBounds = helpBounds;
        }
    }

    /// <summary>
    /// Defines delegate for WizardPageChange events.
    /// </summary>
    public delegate void WizardButtonsLayoutEventHandler(object sender, WizardButtonsLayoutEventArgs e);
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。