Source/Editors/Design/VisualControlBaseDesigner.cs

(完整代码) 865B

#if FRAMEWORK20
using System;
using System.Text;
using System.Windows.Forms.Design;

namespace DevComponents.Editors.Design
{
    /// <summary>
    /// Represents Windows Forms designer for the VisualControlBase control.
    /// </summary>
    public class VisualControlBaseDesigner : ControlDesigner
    {
        #region Private Variables
        #endregion

        #region Constructor
        #endregion

        #region Internal Implementation
        public override void InitializeNewComponent(System.Collections.IDictionary defaultValues)
        {
            VisualControlBase c = this.Control as VisualControlBase;
            if (c != null)
            {
                c.Height = c.PreferredHeight;
            }
            base.InitializeNewComponent(defaultValues);
        }

        #endregion

    }
}
#endif

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

AI 解读 AI

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

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