VSTO C#/VBA单词拼写检查事件
有没有办法检测Word 2010中拼写检查开始和拼写检查完成的事件VSTO C#/VBA单词拼写检查事件,c#,vba,automation,vsto,office-interop,C#,Vba,Automation,Vsto,Office Interop,有没有办法检测Word 2010中拼写检查开始和拼写检查完成的事件 谢谢 您可以使用以下VSTO的VB.NET代码创建自己的按钮 Public Sub SpellCheckButton(ByVal Control As Office.IRibbonControl) Try Dim result As String = "Spelled incorrectly." If Me.Application.CheckSpellin
谢谢 您可以使用以下VSTO的VB.NET代码创建自己的按钮
Public Sub SpellCheckButton(ByVal Control As Office.IRibbonControl)
Try
Dim result As String = "Spelled incorrectly."
If Me.Application.CheckSpelling(Me.Range.Text) = True Then
result = "Spelled correctly."
End If
MessageBox.Show(result)
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
End Sub