Spread WPF 18
Features / Cell Types / Mask Cell
In This Topic
    Mask Cell
    In This Topic

    A masked cell restricts the format of data that a user can enter by using an input mask, allowing developers to specify the input mask format through certain settings.

    To configure the mask cell type in a worksheet, use the methods and properties of the MaskCellType class in the GrapeCity.Wpf.SpreadSheet.CellType namespace.

    Basic Formatting

    Masked cell format is a function that limits the type of data users can input based on the defined mask. There are two primary methods for establishing this format: using keywords and using field objects, each of which is explained below.

    Enumeration Fields

    An enumeration field allows users to enter values that matches one of the predefined collection of strings. These fields are configured using the MaskEnumerationField class. The collection of strings that can be entered is set in the Items property.

    There are two ways to enable users to select items from the collection of strings: through a spinner or a drop-down list.