0

以下是我的 ASPX 页面代码:

<td colspan="2">
    <asp:TextBox ID="txtMessageBody" runat="server" Rows="8" TextMode="MultiLine" Width="1180px"
        CssClass="Label" />
    <igspc:WebSpellChecker ID="wscSpellCheck" runat="server"  TextComponentId="txtMessageBody" ButtonId="btnCcheck">
        <DialogOptions ShowNoErrorsMessage="true"  />
    </igspc:WebSpellChecker>
    <div runat="server" id="divSpecllCheck">                                 
        <input type="button" id="btnCcheck"  value="Spell Check" />
    </div>                                       
</td>

我无法检查所有大写字母的拼写。否则,如果我为 CAT 输入 CTA,它会说没有找到匹配的单词

4

1 回答 1

0

将 SpellOptions.PerformanceOptions.AllowCapitalizedWords 设置为 False。WebSpellChecker 的更新标记:

<ig_spell:WebSpellChecker ID="wscSpellCheck" runat="server" TextComponentId="txtMessageBody" ButtonId="btnCcheck">
    <SpellOptions>
        <PerformanceOptions AllowCapitalizedWords="False"/>
    </SpellOptions>
    <DialogOptions ShowNoErrorsMessage="true" />
</ig_spell:WebSpellChecker>

有关更多详细信息,请参阅 NetAdvantage API 文档中的PerformanceOptions 类成员

于 2012-12-31T20:17:04.207 回答