Partager via


Grouping Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets whether digit grouping is allowed. Read/write.

Usage

ASP.NET markup: <speech:AlphaDigit Grouping="..." />
Get value: Boolean = AlphaDigit.Grouping;
Set value: AlphaDigit.Grouping = Boolean;
Data type: System.Boolean
Required: No; Default: True

Remarks

If Grouping is False, the AlphaDigit control accepts numeric digits from zero to nine, and rejects other numbers. If Grouping is True, numbers larger than nine are converted into the group of digits that comprise the number.

For example, if Grouping is False, the number 747 must be spoken as seven four seven, and the input seven forty-seven would be rejected because forty-seven is larger than nine. If Grouping is True, the number 747 can be spoken as either seven four seven or seven forty-seven.

Example

The following example demonstrates an AlphaDigit control with an InputMask property that specifies a six-digit numeric field.

<form id="Form1" method="post" runat="server">
  ...
  <speech:SemanticMap id="SemanticMap1" runat="server">
    <speech:SemanticItem ID="siPIN" SensitiveData="true" autopostback="true" runat="server">
    </speech:SemanticItem>
  </speech:SemanticMap>

  <Speech:AlphaDigit id="AskPIN" 
    QuestionPrompt="rentrer les six chiffres de votre numéro d'identification personnel s'il-vous-plaît"
    BargeIn="True"  
    SemanticItem="siPIN" 
    InputMask="DDDDDD" 
    Grouping="True"
    ConfirmThreshold="0" 
    AllowDtmf="true" 
    runat="server">
  </Speech:AlphaDigit>
  ...
</form>

See Also

AlphaDigit Class | AlphaDigit Constructor | AlphaDigit Members | AlphaDigit Properties | AlphaDigit Methods | AlphaDigit Events | AlphaDigit Remarks