📄 wordcount.html
字号:
</DD>
</DL>
<HR>
<A NAME="getChineseWordCount()"><!-- --></A><H3>
getChineseWordCount</H3>
<PRE>
public int <B>getChineseWordCount</B>()</PRE>
<DL>
<DD>获得文档的中文字数。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 文档的中文字数 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); System.out.println("返回文档的中文字数为:"+wordCount.getChineseWordCount()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getLineCount()"><!-- --></A><H3>
getLineCount</H3>
<PRE>
public int <B>getLineCount</B>()</PRE>
<DL>
<DD>获得文档的行数。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 文档的行数 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); System.out.println("返回文档的行数为:"+wordCount.getLineCount()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getNonChineseWordCount()"><!-- --></A><H3>
getNonChineseWordCount</H3>
<PRE>
public int <B>getNonChineseWordCount</B>()</PRE>
<DL>
<DD>获得文档的非中文字数。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 文档的非中文字数 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); System.out.println("返回文档的非中文字数为:"+wordCount.getNonChineseWordCount()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getPageCount()"><!-- --></A><H3>
getPageCount</H3>
<PRE>
public int <B>getPageCount</B>()</PRE>
<DL>
<DD>获得文档的页数。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 文档的页数 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); System.out.println("返回文档的页数为:"+wordCount.getPageCount()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getParagraphCount()"><!-- --></A><H3>
getParagraphCount</H3>
<PRE>
public int <B>getParagraphCount</B>()</PRE>
<DL>
<DD>获得文档的段落数。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 文档的段落数 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); System.out.println("返回文档的段落数为:"+wordCount.getParagraphCount()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getWordCount()"><!-- --></A><H3>
getWordCount</H3>
<PRE>
public int <B>getWordCount</B>()</PRE>
<DL>
<DD>获得文档的中、英文单词数。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 文档的中、英文单词数 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); System.out.println("返回文档的中、英文单词数为:"+wordCount.getWordCount()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="isContainNote()"><!-- --></A><H3>
isContainNote</H3>
<PRE>
public boolean <B>isContainNote</B>()</PRE>
<DL>
<DD>字符统计对话框是否包含显示脚注和尾注的字符统计数据。
<P>
<DD><DL>
<DT><B>返回:</B><DD>true表示字符统计对话框的包含脚注和尾注复选框被选中,false表示字符统计对话框的包含脚注和尾注复选框不被选中 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); wordCount.setContainNote(true); System.out.println("字符统计对话框是否包含显示脚注和尾注的字符统计数据:"+wordCount.isContainNote()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setContainNote(boolean)"><!-- --></A><H3>
setContainNote</H3>
<PRE>
public void <B>setContainNote</B>(boolean isState)</PRE>
<DL>
<DD>设置字符统计对话框是否包含显示脚注和尾注的字符统计数据。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>isState</CODE> - true表示字符统计对话框的包含脚注和尾注复选框被选中,false表示字符统计对话框的包含脚注和尾注复选框不被选中 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); WordCount wordCount = doc.getWordCount(false); wordCount.setContainNote(true); </pre></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>类</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../application/workbooks/workbook/documents/document/WordBulletLevel.html" title="application.workbooks.workbook.documents.document 中的类"><B>上一个类</B></A>
<A HREF="../../../../../application/workbooks/workbook/documents/document/WpComments.html" title="application.workbooks.workbook.documents.document 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?application/workbooks/workbook/documents/document/WordCount.html" target="_top"><B>框架</B></A>
<A HREF="WordCount.html" target="_top"><B>无框架</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>所有类</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
摘要: 嵌套 | 字段 | 构造方法 | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: 字段 | 构造方法 | <A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
版权所有 2001-2006 无锡永中科技有限公司
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -