# C1.WPF.C1MaskedTextBox.Mask

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1MaskedTextBox_Mask_" data-uid="C1.WPF.C1MaskedTextBox.Mask*">Mask Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1MaskedTextBox_Mask_" data-uid="C1.WPF.C1MaskedTextBox.Mask*"></a>
<h4 id="C1_WPF_C1MaskedTextBox_Mask" data-uid="C1.WPF.C1MaskedTextBox.Mask">Mask</h4>
<div class="markdown level1 summary"><p>Gets or sets the input mask.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Mask { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Mask As String</code></pre>
</div>
<h5 id="C1_WPF_C1MaskedTextBox_Mask_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;The mask consists of a string that determines what class of character is acceptable
</code></pre>
<p>at each input position.</p>
<p>Valid mask characters are:</p>
<p>
<b>0</b>    Digit (0-9)</p>
<p>
<b>9</b>    Digit or space</p>
<p>
<b>#</b>    Digit, space, or sign (+/-)</p>
<p>
<b>L</b>    Letter</p>
<p>
<b>?</b>    Letter or space</p>
<p>
<b>A</b>    Letter or digit</p>
<p>
<b>a</b>    Letter, digit, or space</p>
<p>
<b>&amp;</b>    Any character</p>
<p>
<b>.</b>    Localized decimal symbol</p>
<p>
<b>,</b>    Localized thousand separator</p>
<p>
<b>:</b>    Localized time separator</p>
<p>
<b>/</b>    Localized date separator</p>
<p>Other characters are treated as literals. They are displayed in the control but cannot
be edited.</p>
<p>For example, the mask &quot;000-0000&quot; causes the control to accept only digits at every
position except the third, which always contains a dash.</p>
</div>
</div>
