# C1.Win.C1Input.MaskInfo

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Input_MaskInfo" data-uid="C1.Win.C1Input.MaskInfo" class="text-break">MaskInfo Class
</h1>
  <div class="markdown level0 summary"><p>Contains edit mask settings.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><span class="xref">MaskInfo</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icustomtypedescriptor">ICustomTypeDescriptor</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Input.html">C1.Win.C1Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Win_C1Input_MaskInfo_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(GenericInheritConverter))]
public class MaskInfo : MarshalByRefObject, IDisposable, ISupportInitialize, ICustomTypeDescriptor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(GenericInheritConverter))&gt;
Public Class MaskInfo
    Inherits MarshalByRefObject
    Implements IDisposable, ISupportInitialize, ICustomTypeDescriptor</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_AutoTabWhenFilled" data-uid="C1.Win.C1Input.MaskInfo.AutoTabWhenFilled">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.AutoTabWhenFilled.html#C1_Win_C1Input_MaskInfo_AutoTabWhenFilled">AutoTabWhenFilled</a>
        </td>
        <td class="markdown level1 summary"><p>If True, focus automatically moves to the next control when the mask is filled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_CaseSensitive" data-uid="C1.Win.C1Input.MaskInfo.CaseSensitive">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.CaseSensitive.html#C1_Win_C1Input_MaskInfo_CaseSensitive">CaseSensitive</a>
        </td>
        <td class="markdown level1 summary"><p>True if comparison with mask literals is case-sensitive; otherwise, False.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_Content" data-uid="C1.Win.C1Input.MaskInfo.Content">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.Content.html#C1_Win_C1Input_MaskInfo_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Text entered by the user without literals (mask literals stripped).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_CopyWithLiterals" data-uid="C1.Win.C1Input.MaskInfo.CopyWithLiterals">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.CopyWithLiterals.html#C1_Win_C1Input_MaskInfo_CopyWithLiterals">CopyWithLiterals</a>
        </td>
        <td class="markdown level1 summary"><p>If True, text copied to the clipboard includes literals.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_CustomPlaceholders" data-uid="C1.Win.C1Input.MaskInfo.CustomPlaceholders">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.CustomPlaceholders.html#C1_Win_C1Input_MaskInfo_CustomPlaceholders">CustomPlaceholders</a>
        </td>
        <td class="markdown level1 summary"><p>The collection of user-defined mask characters.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_EditMask" data-uid="C1.Win.C1Input.MaskInfo.EditMask">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.EditMask.html#C1_Win_C1Input_MaskInfo_EditMask">EditMask</a>
        </td>
        <td class="markdown level1 summary"><p>The edit mask string restricting user input.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_EditablePositionCount" data-uid="C1.Win.C1Input.MaskInfo.EditablePositionCount">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.EditablePositionCount.html#C1_Win_C1Input_MaskInfo_EditablePositionCount">EditablePositionCount</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of editable positions in the edit mask.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_EffectiveText" data-uid="C1.Win.C1Input.MaskInfo.EffectiveText">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.EffectiveText.html#C1_Win_C1Input_MaskInfo_EffectiveText">EffectiveText</a>
        </td>
        <td class="markdown level1 summary"><p>Text in a readable format, with literals and without blanks.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_EmptyAsNull" data-uid="C1.Win.C1Input.MaskInfo.EmptyAsNull">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.EmptyAsNull.html#C1_Win_C1Input_MaskInfo_EmptyAsNull">EmptyAsNull</a>
        </td>
        <td class="markdown level1 summary"><p>If True, empty strings are interpreted as null values (DbNull).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ErrorMessage" data-uid="C1.Win.C1Input.MaskInfo.ErrorMessage">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ErrorMessage.html#C1_Win_C1Input_MaskInfo_ErrorMessage">ErrorMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Error message shown in the standard message box and/or if an exception occurs.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_Inherit" data-uid="C1.Win.C1Input.MaskInfo.Inherit">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.Inherit.html#C1_Win_C1Input_MaskInfo_Inherit">Inherit</a>
        </td>
        <td class="markdown level1 summary"><p>Manages inheritance of the MaskInfo properties from the host control properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_IsRegexpPatternRecognized" data-uid="C1.Win.C1Input.MaskInfo.IsRegexpPatternRecognized">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.IsRegexpPatternRecognized.html#C1_Win_C1Input_MaskInfo_IsRegexpPatternRecognized">IsRegexpPatternRecognized</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicates whether the mask pattern in regular expression style was succesfully recognized or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_PromptChar" data-uid="C1.Win.C1Input.MaskInfo.PromptChar">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.PromptChar.html#C1_Win_C1Input_MaskInfo_PromptChar">PromptChar</a>
        </td>
        <td class="markdown level1 summary"><p>Character displayed on empty mask positions in edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_RegexpEditMask" data-uid="C1.Win.C1Input.MaskInfo.RegexpEditMask">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.RegexpEditMask.html#C1_Win_C1Input_MaskInfo_RegexpEditMask">RegexpEditMask</a>
        </td>
        <td class="markdown level1 summary"><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> representing the mask in regular expression style with custom keywords.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_RegexpMaskType" data-uid="C1.Win.C1Input.MaskInfo.RegexpMaskType">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.RegexpMaskType.html#C1_Win_C1Input_MaskInfo_RegexpMaskType">RegexpMaskType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets ot sets a value that indicate <a class="xref" href="C1.Win.C1Input.MaskInfo.RegexpMaskType.html#C1_Win_C1Input_MaskInfo_RegexpMaskType">RegexpMaskType</a> of the mask in regular expression style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_SaveBlanks" data-uid="C1.Win.C1Input.MaskInfo.SaveBlanks">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.SaveBlanks.html#C1_Win_C1Input_MaskInfo_SaveBlanks">SaveBlanks</a>
        </td>
        <td class="markdown level1 summary"><p>If True, the stored text includes blank positions as StoredEmptyChar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_SaveLiterals" data-uid="C1.Win.C1Input.MaskInfo.SaveLiterals">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.SaveLiterals.html#C1_Win_C1Input_MaskInfo_SaveLiterals">SaveLiterals</a>
        </td>
        <td class="markdown level1 summary"><p>If True (default), the stored text includes literals.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ShowLiterals" data-uid="C1.Win.C1Input.MaskInfo.ShowLiterals">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ShowLiterals.html#C1_Win_C1Input_MaskInfo_ShowLiterals">ShowLiterals</a>
        </td>
        <td class="markdown level1 summary"><p>Literal display method.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_SkipOptional" data-uid="C1.Win.C1Input.MaskInfo.SkipOptional">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.SkipOptional.html#C1_Win_C1Input_MaskInfo_SkipOptional">SkipOptional</a>
        </td>
        <td class="markdown level1 summary"><p>If True (default), optional mask positions are automatically skipped until the first position allowing the typed character.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_StoredContent" data-uid="C1.Win.C1Input.MaskInfo.StoredContent">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.StoredContent.html#C1_Win_C1Input_MaskInfo_StoredContent">StoredContent</a>
        </td>
        <td class="markdown level1 summary"><p>The stored string obtained from the user input string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_StoredEmptyChar" data-uid="C1.Win.C1Input.MaskInfo.StoredEmptyChar">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.StoredEmptyChar.html#C1_Win_C1Input_MaskInfo_StoredEmptyChar">StoredEmptyChar</a>
        </td>
        <td class="markdown level1 summary"><p>Character stored in empty mask positions.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_GetContent_System_String_System_Boolean_System_Boolean_System_Char_" data-uid="C1.Win.C1Input.MaskInfo.GetContent(System.String,System.Boolean,System.Boolean,System.Char)">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.GetContent.html#C1_Win_C1Input_MaskInfo_GetContent_System_String_System_Boolean_System_Boolean_System_Char_">GetContent(string, bool, bool, char)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the string containing characters entered by the user, including those on optional positions that were left blank (skipped).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_GetDisplayText_System_String_System_Boolean_" data-uid="C1.Win.C1Input.MaskInfo.GetDisplayText(System.String,System.Boolean)">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.GetDisplayText.html#C1_Win_C1Input_MaskInfo_GetDisplayText_System_String_System_Boolean_">GetDisplayText(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string formatted for display using edit mask.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_GetStoredText_System_String_" data-uid="C1.Win.C1Input.MaskInfo.GetStoredText(System.String)">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.GetStoredText.html#C1_Win_C1Input_MaskInfo_GetStoredText_System_String_">GetStoredText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the string that will be stored in the database, in accordance with current values of SaveLiterals, SaveBlanks and StoredEmptyChar properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_IsMaskedMode" data-uid="C1.Win.C1Input.MaskInfo.IsMaskedMode">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.IsMaskedMode.html#C1_Win_C1Input_MaskInfo_IsMaskedMode">IsMaskedMode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if EditMask is non-empty and the control is in edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_IsValid" data-uid="C1.Win.C1Input.MaskInfo.IsValid">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.IsValid.html#C1_Win_C1Input_MaskInfo_IsValid">IsValid()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns True if the input string is valid with respect to the edit mask.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_Reset" data-uid="C1.Win.C1Input.MaskInfo.Reset">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.Reset.html#C1_Win_C1Input_MaskInfo_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets whole MaskInfo property of base control</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ResetCaseSensitive" data-uid="C1.Win.C1Input.MaskInfo.ResetCaseSensitive">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ResetCaseSensitive.html#C1_Win_C1Input_MaskInfo_ResetCaseSensitive">ResetCaseSensitive()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ResetContent" data-uid="C1.Win.C1Input.MaskInfo.ResetContent">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ResetContent.html#C1_Win_C1Input_MaskInfo_ResetContent">ResetContent()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the text to the string representing a DBNull value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ResetCustomPlaceholders" data-uid="C1.Win.C1Input.MaskInfo.ResetCustomPlaceholders">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ResetCustomPlaceholders.html#C1_Win_C1Input_MaskInfo_ResetCustomPlaceholders">ResetCustomPlaceholders()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ResetEmptyAsNull" data-uid="C1.Win.C1Input.MaskInfo.ResetEmptyAsNull">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ResetEmptyAsNull.html#C1_Win_C1Input_MaskInfo_ResetEmptyAsNull">ResetEmptyAsNull()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ResetErrorMessage" data-uid="C1.Win.C1Input.MaskInfo.ResetErrorMessage">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ResetErrorMessage.html#C1_Win_C1Input_MaskInfo_ResetErrorMessage">ResetErrorMessage()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ShouldSerializeCaseSensitive" data-uid="C1.Win.C1Input.MaskInfo.ShouldSerializeCaseSensitive">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ShouldSerializeCaseSensitive.html#C1_Win_C1Input_MaskInfo_ShouldSerializeCaseSensitive">ShouldSerializeCaseSensitive()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ShouldSerializeCustomPlaceholders" data-uid="C1.Win.C1Input.MaskInfo.ShouldSerializeCustomPlaceholders">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ShouldSerializeCustomPlaceholders.html#C1_Win_C1Input_MaskInfo_ShouldSerializeCustomPlaceholders">ShouldSerializeCustomPlaceholders()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ShouldSerializeEditMask" data-uid="C1.Win.C1Input.MaskInfo.ShouldSerializeEditMask">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ShouldSerializeEditMask.html#C1_Win_C1Input_MaskInfo_ShouldSerializeEditMask">ShouldSerializeEditMask()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ShouldSerializeEmptyAsNull" data-uid="C1.Win.C1Input.MaskInfo.ShouldSerializeEmptyAsNull">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ShouldSerializeEmptyAsNull.html#C1_Win_C1Input_MaskInfo_ShouldSerializeEmptyAsNull">ShouldSerializeEmptyAsNull()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_MaskInfo_ShouldSerializeErrorMessage" data-uid="C1.Win.C1Input.MaskInfo.ShouldSerializeErrorMessage">
          <a class="xref" href="C1.Win.C1Input.MaskInfo.ShouldSerializeErrorMessage.html#C1_Win_C1Input_MaskInfo_ShouldSerializeErrorMessage">ShouldSerializeErrorMessage()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
