/// <summary> /// Initializes a new instance of the MaskedBehavior class by copying it from /// another MaskedBehavior object. </summary> /// <param name="behavior"> /// The MaskedBehavior object to copied (and then disposed of). It must not be null. </param> /// <exception cref="ArgumentNullException">behavior is null. </exception> /// <remarks> /// After the behavior.TextBox object is copied, Dispose is called on the behavior parameter. </remarks> public MaskBehavior(MaskBehavior behavior) : base(behavior) { m_mask = behavior.m_mask; m_symbols = behavior.m_symbols; }
/// <summary> /// Initializes a new instance of the MaskedBehavior class by copying it from /// another MaskedBehavior object. </summary> /// <param name="behavior"> /// The MaskedBehavior object to copied (and then disposed of). It must not be null. </param> /// <exception cref="ArgumentNullException">behavior is null. </exception> /// <remarks> /// After the behavior.TextBox object is copied, Dispose is called on the behavior parameter. </remarks> public MaskBehavior(MaskBehavior behavior) : base(behavior) { _mask = behavior._mask; _symbols = behavior._symbols; }
public MaskTextBox(MaskBehavior behavior) : base(behavior) { }
public MaskTextBox(string mask) { _behavior = new MaskBehavior(this, mask); }
public MaskTextBox() { _behavior = new MaskBehavior(this); }