WinHtmlEditor/Common/ToolStripColorPicker.cs

(开头部分) 16KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;

namespace WinHtmlEditor
{
    /// <summary>
    /// Specifies the display options for the ToolStripColorPicker such as
    /// image, text and underline.
    /// </summary>
    public enum ToolStripColorPickerDisplayType
    {
        // <summary>
        /// Specifies that only a normal image is to be rendered for this ToolStripColorPicker
        /// </summary>   
        NormalImage,
        /// <summary>
        /// Specifies that both image and text are to be rendered for this ToolStripColorPicker
        /// </summary>
        NormalImageAndText,
        /// <summary>
        /// Specifies that both color under-line and image are to be rendered for this ToolStripColorPicker
        /// </summary>
        UnderLineAndImage,
        /// <summary>
        /// Specifies that both color under-line and text are to be rendered for this ToolStripColorPicker
        /// </summary>
        UnderLineAndText,
        /// <summary>
        /// Specifies that both color under-line, text and image are to be rendered for this ToolStripColorPicker
        /// </summary>
        UnderLineTextAndImage,
        /// <summary>
        /// Specifies that only a color under-line is to be rendered for this ToolStripColorPicker
        /// </summary>
        UnderLineOnly,
        /// <summary>
        /// Specified that neither image, text nor under-line is to be rendered for this ToolStripColorPicker
        /// </summary>
        None,
        /// <summary>
        /// Specifies that only text is to be rendered for this ToolStripColorPicker            
        /// </summary>
        Text
    }

    /// <summary>
    /// Represents a ToolStripButtonItem that contains Color Picker control.
    /// </summary>
    [DefaultEvent("SelectedColorChanged"), DefaultProperty("Color"),
    Description("ToolStripItem that allows selecting a color from a color picker control."),
    ToolboxItem(false),
    ToolboxBitmap(typeof(ToolStripColorPicker), "ToolStripColorPicker")]
    public class ToolStripColorPicker : ToolStripSplitButton
    {

        #region Events
        /// <summary>
        /// Occurs when the value of the Color property changes. 
后面还有 399 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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