⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wordbulletlevel.html

📁 永中OFFICE二次开发帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
 BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_NUMBER,1); bullet.setNumberStyle(2); baseText.setBulletedNumber(2,6,bullet,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的编号样式不存在</DL>
</DD>
</DL>
<HR>

<A NAME="setPicturePath(java.lang.String)"><!-- --></A><H3>
setPicturePath</H3>
<PRE>
public void <B>setPicturePath</B>(java.lang.String&nbsp;filepath)</PRE>
<DL>
<DD>设置编号图片。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>filepath</CODE> - 编号图片路径 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_BULLET,1); bullet.setPicturePath("d:\\bullet1.jpg"); baseText.setBulletedNumber(2,6,bullet,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当文件不存在时
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 应用于类型为项目符号以外的列表对象</DL>
</DD>
</DL>
<HR>

<A NAME="setResetNumberLevel(int)"><!-- --></A><H3>
setResetNumberLevel</H3>
<PRE>
public void <B>setResetNumberLevel</B>(int&nbsp;level)</PRE>
<DL>
<DD>设置在其后重新编号的级别,只有多级编号才有效。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>level</CODE> - 重新编号的级别 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel[] levels = baseText.getBulletLevelArray(1); levels[3].setResetNumberLevel(0); baseText.setOutlinedNumber(2,30,levels,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当多级编号的级别参数越界</DL>
</DD>
</DL>
<HR>

<A NAME="setReStart(boolean)"><!-- --></A><H3>
setReStart</H3>
<PRE>
public void <B>setReStart</B>(boolean&nbsp;restart)</PRE>
<DL>
<DD>设置重新编号标记
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>restart</CODE> - 重新编号标记 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel[] levels = baseText.getBulletLevelArray(1); levels[0].setReStart(true); baseText.setOutlinedNumber(2,30,levels,false); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setStandardStyle(boolean)"><!-- --></A><H3>
setStandardStyle</H3>
<PRE>
public void <B>setStandardStyle</B>(boolean&nbsp;standard)</PRE>
<DL>
<DD>设置编号为正规样式编号,只有多级编号才有效。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>standard</CODE> - 是否为正规样式编号 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel[] levels = baseText.getBulletLevelArray(1); levels[0].setStandardStyle(true); baseText.setOutlinedNumber(2,30,levels,false); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setStartAt(int)"><!-- --></A><H3>
setStartAt</H3>
<PRE>
public void <B>setStartAt</B>(int&nbsp;number)</PRE>
<DL>
<DD>设置起始编号。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>number</CODE> - 起始编号 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_NUMBER,1); bullet.setStartAt(2); baseText.setBulletedNumber(2,6,bullet,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当起始编号参数越界</DL>
</DD>
</DL>
<HR>

<A NAME="setSymbol(char)"><!-- --></A><H3>
setSymbol</H3>
<PRE>
public void <B>setSymbol</B>(char&nbsp;unicode)</PRE>
<DL>
<DD>设置项目符号。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>unicode</CODE> - 项目符号 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_BULLET,1); bullet.setSymbol('$'); baseText.setBulletedNumber(2,6,bullet,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 应用于类型为项目符号以外的列表对象</DL>
</DD>
</DL>
<HR>

<A NAME="setTabPosition(float)"><!-- --></A><H3>
setTabPosition</H3>
<PRE>
public void <B>setTabPosition</B>(float&nbsp;pos)</PRE>
<DL>
<DD>设置编号后制表位位置(默认取磅值)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>pos</CODE> - 编号后制表位位置,范围在-1584到1584磅之间 说明:set方法的参数默认取磅值,如果要用其他的度量单位(英寸、厘米、毫米、十二点活字), 可以用 application.util.Utilities.otherToPoint(double, int)方法将其他度量单位转换为磅值后再调用相应的设置方法。 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_NUMBER,1); bullet.setTabPosition(15f); baseText.setBulletedNumber(2,6,bullet,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当制表位位置参数越界</DL>
</DD>
</DL>
<HR>

<A NAME="setTextPosition(float)"><!-- --></A><H3>
setTextPosition</H3>
<PRE>
public void <B>setTextPosition</B>(float&nbsp;pos)</PRE>
<DL>
<DD>设置编号后文本位置(默认取磅值)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>pos</CODE> - 编号后文本位置,范围在-1584到1584磅之间 说明:set方法的参数默认取磅值,如果要用其他的度量单位(英寸、厘米、毫米、十二点活字), 可以用 application.util.Utilities.otherToPoint(double, int)方法将其他度量单位转换为磅值后再调用相应的设置方法。 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_NUMBER,1); bullet.setTextPosition(15f); baseText.setBulletedNumber(2,6,bullet,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当文本位置参数越界</DL>
</DD>
</DL>
<HR>

<A NAME="setTrailingCharacter(int)"><!-- --></A><H3>
setTrailingCharacter</H3>
<PRE>
public void <B>setTrailingCharacter</B>(int&nbsp;spacingType)</PRE>
<DL>
<DD>设置得编号之后间隙的类型,只有多级编号才有效。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>spacingType</CODE> - 编号与文本间隙的类型,只能取以下3种类型之一: <pre> BulletNumberConstants.FOLLOW_TAB = 0       编号之后:制表符 BulletNumberConstants.FOLLOW_SPACE = 1     编号之后:空格 BulletNumberConstants.FOLLOW_NOTHING = 2   编号之后:不特别标注 </pre> <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel[] levels = baseText.getBulletLevelArray(1); levels[0].setTrailingCharacter(BulletNumberConstants.FOLLOW_NOTHING); baseText.setOutlinedNumber(2,30,levels,false); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 应用于类型不是多级编号的列表对象
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的常量不存在</DL>
</DD>
</DL>
<HR>

<A NAME="setType(int)"><!-- --></A><H3>
setType</H3>
<PRE>
public void <B>setType</B>(int&nbsp;type)</PRE>
<DL>
<DD>设置项目符号类型。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>type</CODE> - 项目符号类型 <p> BulletNumberConstants.LIST_BULLET      项目符号 BulletNumberConstants.LIST_NUMBER      编号 BulletNumberConstants.LIST_OUTLINE     多级符号 </p> <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); Section section = doc.getSection(0); BaseText baseText = section.getBaseText(); baseText.insertText(0,"this is a test!\nthis is a test!\nthis is a test!\n"); WordBulletLevel listLevel = new WordBulletLevel(); listLevel.setType(BulletNumberConstants.LIST_NUMBER); listLevel.setLevelText("%1."); listLevel.setNumberStyle(0); listLevel.setStartAt(1); listLevel.setNumberAlignment(BulletNumberConstants.LEFT); listLevel.setNumberPosition(0.0f); listLevel.setTabPosition(21.0f); listLevel.setTextPosition(21.0f); baseText.setBulletedNumber(2,30,listLevel,false); </pre><DT><B>另请参见:</B><DD><A HREF="../../../../../application/constants/BulletNumberConstants.html" title="application.constants 中的接口"><CODE>BulletNumberConstants</CODE></A></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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>类</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;上一个类&nbsp;
&nbsp;<A HREF="../../../../../application/workbooks/workbook/documents/document/WordCount.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/WordBulletLevel.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="WordBulletLevel.html" target="_top"><B>无框架</B></A>  &nbsp;
&nbsp;<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">
  摘要:&nbsp;嵌套&nbsp;|&nbsp;字段&nbsp;|&nbsp;构造方法&nbsp;|&nbsp;<A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息:&nbsp;字段&nbsp;|&nbsp;构造方法&nbsp;|&nbsp;<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 + -