从文档VSTO中提取单词 [英] Extracting words from document VSTO

查看:89
本文介绍了从文档VSTO中提取单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我是VSTO的新手,我想从Word文档中提取单词并将它们放入单词列表中。我不知道该怎么做。有人可以帮帮我吗?

I'm new on VSTO, I want to extract words from a Word document and put them into a list of words. I have no idea on how to do that. Can somebody please help me?

谢谢

推荐答案

你好,

字符串类提供
分割
方法r eturns一个字符串数组,其中包含此实例中由指定的
字符串或Unicode字符数组的元素分隔的子字符串。例如:

The string class provides the Split method which returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. For example:

string [] words = stringInstance.Split('');


这篇关于从文档VSTO中提取单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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