如何获取/替换最后一个单词? [英] How to get/replace last word ?

查看:77
本文介绍了如何获取/替换最后一个单词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是VSTO的新手(c#)

I am newbie in VSTO (c#)

我的问题是,如何替换最后一个字(来自当前光标的位置)?

my question is, how to replace the last word (from the current cursor's position)?

例如, 

Here the story starts, but Mike *

让我们说,星号是鼠标位置,我想执行命令来替换最后一个单词"Mike"。

let's say, the asterisk is mouse position, and I want to execute command to replace the last word "Mike".







推荐答案

Hello TazoTodua,

Hello TazoTodua,

你的意思是什么?直到最后一个空格字符的字符或字符?

What do you mean a word? A character or the characters until last space character?

您是否在为项目使用C#或VB代码?

Are you using C# or VB code for you project?

最好的问候,

Terry


这篇关于如何获取/替换最后一个单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆