为什么ListParagraphs和Paragraphs中获得的标题编号不同
c104 2005-06-03 11:26:53 程序目的是为了判断word文档中的独立标题,即5.1后面没有5.2的话认为5.1是独立标题。
g_curDoc.ListParagraphs(iHeadIndex).Range.ListFormat.ListString 获得的值
有时候与g_curDoc.Paragraphs(iCurrentIndex).Range.ListFormat.ListString获得的值不同
但是所指向的标题行其实是同一个,标题的编号在前者中正常,如5.1;但是在后者中有时候却为a)
这样就会造成判断错误。
由于遍历ListParagraphs要比Paragraphs快得多,所以用遍历ListParagraphs来判断下一个标题的编号.
请问这是为什么?有什么别的方法可以实现这个目的吗?