Source/Controls/MaskedTextBoxAdv.cs
(开头部分) 66KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;
using DevComponents.Editors;
using System.Collections;
using System.Drawing;
using System.Globalization;
using System.Drawing.Design;
using System.Drawing.Drawing2D;
using System.Diagnostics;
using DevComponents.DotNetBar.TextMarkup;
namespace DevComponents.DotNetBar.Controls
{
[ToolboxBitmap(typeof(MaskedTextBoxAdv), "Controls.MaskedTextBoxAdv.ico"), System.ComponentModel.ToolboxItem(true), DefaultProperty("Mask"), DefaultBindingProperty("Text"), DefaultEvent("MaskInputRejected"), Designer(typeof(DevComponents.DotNetBar.Design.MaskedTextBoxAdvDesigner))]
public class MaskedTextBoxAdv : PopupItemControl, IInputButtonControl, ICommandSource
{
#region Private Variables
private MaskedTextBox _MaskedTextBox = 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;
private string _WatermarkText = "";
private Font _WatermarkFont = null;
private Color _WatermarkColor = SystemColors.GrayText;
#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 after the insert mode has changed
/// </summary>
[Description("Occurs after the insert mode has changed")]
public event EventHandler IsOverwriteModeChanged;
/// <summary>
/// Occurs after the input mask is changed.
/// </summary>
[Description("Occurs after the input mask is changed.")]
public event EventHandler MaskChanged;
/// <summary>
/// Occurs when the user's input or assigned character does not match the corresponding format element of the input mask.
后面还有 1699 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。