Source/Controls/ComboTree.cs

(开头部分) 116KB

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

#if FRAMEWORK20
using System;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using DevComponents.Editors;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Collections;
using System.Drawing.Design;
using DevComponents.AdvTree;
using System.Security;
using System.Globalization;
using System.Threading;
using System.Collections.Generic;

namespace DevComponents.DotNetBar.Controls
{
    /// <summary>
    /// Represents the combo box like control which shows the AdvTree control on popup. Tree control
    /// can be configured to display multiple columns as well.
    /// </summary>
    [ToolboxBitmap(typeof(ComboTree), "Controls.ComboTree.ico"), ToolboxItem(true), DefaultProperty("Text"), DefaultBindingProperty("Text"), DefaultEvent("TextChanged"), Designer(typeof(DevComponents.DotNetBar.Design.ComboTreeDesigner))]
    public class ComboTree : PopupItemControl, IInputButtonControl, ICommandSource
    {
        #region Private Variables
        //private TextBoxX _TextBox = null;
        private AdvTree.AdvTree _AdvTree = null;
        private ButtonItem _PopupItem = null;
        private static string _DropDownItemContainerName = "sysPopupItemContainer";
        private static string _DropDownControlContainerName = "sysPopupControlContainer";
        private Color _FocusHighlightColor = ColorScheme.GetColor(0xFFFF88);
        private bool _FocusHighlightEnabled = false;
        #endregion

        #region Events
        /// <summary>
        /// Occurs when Clear button is clicked and allows you to cancel the default action performed by the button.
        /// </summary>
        public event CancelEventHandler ButtonClearClick;
        /// <summary>
        /// Occurs when Drop-Down button that shows popup is clicked and allows you to cancel showing of the popup.
        /// </summary>
        public event CancelEventHandler ButtonDropDownClick;
        /// <summary>
        /// Occurs when ButtonCustom control is clicked.
        /// </summary>
        public event EventHandler ButtonCustomClick;
        /// <summary>
        /// Occurs when ButtonCustom2 control is clicked.
        /// </summary>
        public event EventHandler ButtonCustom2Click;
        /// <summary>
        /// Occurs when the text alignment in text box has changed.
        /// </summary>
        [Description("Occurs when the text alignment in text box has changed.")]
        public event EventHandler TextAlignChanged;
        ///// <summary>
        ///// Occurs when the value of the Modified property has changed.
        ///// </summary>
后面还有 2900 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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