WPF 的 TextBox 是否支持荷兰的拼写检查字典?

编程入门 行业动态 更新时间:2024-10-26 08:21:24
本文介绍了WPF 的 TextBox 是否支持荷兰的拼写检查字典?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

RichTextBox 支持非常好的拼写检查选项.(SpellCheck.IsEnabled = true)

The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true)

但我似乎无法将它翻译成另一种语言.(我住在荷兰.. ;))

But I cannot seem to get it to another language. (I live in the Netherlands.. ;))

你们有没有使用过 TextBox 的 SpellCheck 选项的经验?

Does any of you have an experience with the SpellCheck option of TextBox?

我知道可以通过更改键盘设置来更改它,但我想在应用程序中更改它.

I know it can be change by changing the keyboard settings, but I want to change it in the application.

到目前为止我尝试过的(但没有奏效):

What I have tried so far (and did not work):

  • 更改当前线程的 CurrentCulture.
  • 在nl-NL"中更改 xaml 中的语言属性
  • 使用 XmlLanguage.GetLanguage("nl-NL"); 更改代码中的 Language 属性;

以下行不应出现任何拼写错误:

You should not get any spelling errors with the following line:

Dit is een Nederlandse tekst."

"Dit is een Nederlandse tekst."

我的语言的 RFC 3066 语言键是nl-NL"

The RFC 3066 language key of my language is "nl-NL"

非常感谢,瑞克

推荐答案

对 WPF 的拼写支持仅限于 4 种语言;英语、西班牙语、法语和德语.

Spelling support for WPF is limited to just 4 languages; English, Spanish, French, and German.

使用自定义词典只会将特殊词"添加到当前词典中.它不允许新的语言词典.

Using a custom dictionary will only add "special words" to the current dictionary. It will not allow a new language dictionary.

更多推荐

WPF 的 TextBox 是否支持荷兰的拼写检查字典?

本文发布于:2023-11-12 05:04:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580583.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:荷兰   字典   WPF   TextBox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!