c# - Is there any Event for select text from mail body? -
i try catch selection text change event on mail body. idea text when selection changed , show in textbox.
i got document object there event selection change ?
outlook.mailitem mailitem = item outlook.mailitem; outlook.inspector inspector = mailitem.getinspector; microsoft.office.interop.word.document document = (microsoft.office.interop.word.document)inspector.wordeditor;
i think looking similar this.
text selection change event in outlook inspector window
you'll want application
document
, attach windowselectionchanged
event.
outlook.mailitem mailitem = item outlook.mailitem; outlook.inspector inspector = mailitem.getinspector; word.document document = (microsoft.office.interop.word.document)inspector.wordeditor; word.application app = document.application; app.windowselectionchange += new microsoft.office.interop.word.applicationevents4_windowselectionchangeeventhandler(your_method_here);