System.Windows.Forms.Design.MaskDescriptor.Equals Method

Determines whether the specified System.Windows.Forms.Design.MaskDescriptor is equal to the current System.Windows.Forms.Design.MaskDescriptor.

Syntax

public override bool Equals (object maskDescriptor)

Parameters

maskDescriptor
The System.Windows.Forms.Design.MaskDescriptor to compare with the current System.Windows.Forms.Design.MaskDescriptor.

Returns

true if the specified System.Windows.Forms.Design.MaskDescriptor is equal to the current System.Windows.Forms.Design.MaskDescriptor; otherwise, false.

Remarks

The MaskDescriptor.Equals(object) method determines whether maskDescriptor and the current mask descriptor describe the same mask.

This method returns true if the following conditions are met in both mask descriptors.

1. The MaskDescriptor.Mask property is the same for both mask descriptors.

2. The validating type is the same for both mask descriptors.

Note:

The MaskDescriptor.Name property is not considered, because the System.ComponentModel.MaskedTextProvider and System.Windows.Forms.MaskedTextBox classes do not use it.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0