Source/AdvTree/Display/DragDropMarkerRendererEventArgs.cs

(完整代码) 1KB

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

namespace DevComponents.AdvTree.Display
{
    /// <summary>
    /// Provides data for the NodeRenderer.RenderDragDropMarker event.
    /// </summary>
    public class DragDropMarkerRendererEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets reference to Graphics object, canvas node is rendered on.
        /// </summary>
        public System.Drawing.Graphics Graphics = null;
        /// <summary>
        /// Gets or sets the selection bounds.
        /// </summary>
        public Rectangle Bounds = Rectangle.Empty;

        /// <summary>
        /// Initializes a new instance of the DragDropMarkerRendererEventArgs class.
        /// </summary>
        public DragDropMarkerRendererEventArgs()
        {
        }

        /// <summary>
        /// Initializes a new instance of the DragDropMarkerRendererEventArgs class.
        /// </summary>
        /// <param name="graphics"></param>
        /// <param name="bounds"></param>
        public DragDropMarkerRendererEventArgs(System.Drawing.Graphics graphics, Rectangle bounds)
        {
            Graphics = graphics;
            Bounds = bounds;
        }
    }
}

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

AI 解读 AI

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

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