'宣言 Public Sub SetSpellCheckerSettings( _ ByVal control As Control, _ ByVal spellCheckerSettings As SpellCheckerSettings _ )
public void SetSpellCheckerSettings( Control control, SpellCheckerSettings spellCheckerSettings )
このメソッドは、特定のコントロールに SpellCheckerSettings オブジェクトを関連づけます。指定したコントロールと関連付けられた既存の SpellCheckerSettings が存在する場合、既存の SpellCheckerSettings は削除されて新しい SpellCheckerSettings に置き換わります。
Imports Infragistics.Win.UltraWinSpellChecker Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load 'The extender property must be set for the rich text box so that it may 'be spell checked. This can also be done through the property grid 'in the forms designer Me.ultraSpellChecker1.SetSpellCheckerSettings(Me.richTextBox1, New SpellCheckerSettings(True)) End Sub
using System.Windows.Forms; using Infragistics.Win.UltraWinSpellChecker; private void Form1_Load(object sender, EventArgs e) { //The extender property must be set for the rich text box so that it may //be spell checked. This can also be done through the property grid //in the forms designer this.ultraSpellChecker1.SetSpellCheckerSettings( this.richTextBox1, new SpellCheckerSettings( true ) ); }