Source/AdvTree/Drawing/Fill.cs

(完整代码) 977B

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

namespace DevComponents.WinForms.Drawing
{
    [ToolboxItem(false)]
    public abstract class Fill : Component
    {
        #region Internal Implementation
        /// <summary>
        /// Creates the brush for fill.
        /// </summary>
        /// <param name="bounds">Bounds for the brush</param>
        /// <returns>Returns brush or null if brush cannot be created for given bounds or colors are not set. It is responsibility of caller to Dispose the brush.</returns>
        public abstract Brush CreateBrush(Rectangle bounds);

        /// <summary>
        /// Creates a pen based on fill parameters.
        /// </summary>
        /// <param name="width">Width of the pen to create</param>
        /// <returns>new instance of pen or null if pen cannot be created.</returns>
        public abstract Pen CreatePen(int width);
        #endregion
    }
}

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

AI 解读 AI

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

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