📄 wordbulletlevel.html
字号:
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/documents/document/WordBulletLevel.html#setSymbol(char)">setSymbol</A></B>(char unicode)</CODE>
<BR>
设置项目符号。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/documents/document/WordBulletLevel.html#setTabPosition(float)">setTabPosition</A></B>(float pos)</CODE>
<BR>
设置编号后制表位位置(默认取磅值)。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/documents/document/WordBulletLevel.html#setTextPosition(float)">setTextPosition</A></B>(float pos)</CODE>
<BR>
设置编号后文本位置(默认取磅值)。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/documents/document/WordBulletLevel.html#setTrailingCharacter(int)">setTrailingCharacter</A></B>(int spacingType)</CODE>
<BR>
设置得编号之后间隙的类型,只有多级编号才有效。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/documents/document/WordBulletLevel.html#setType(int)">setType</A></B>(int type)</CODE>
<BR>
设置项目符号类型。</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>从类 java.lang.Object 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>方法详细信息</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getFontAttribute()"><!-- --></A><H3>
getFontAttribute</H3>
<PRE>
public <A HREF="../../../../../application/workbooks/workbook/style/font/FontAttribute.html" title="application.workbooks.workbook.style.font 中的类">FontAttribute</A> <B>getFontAttribute</B>()</PRE>
<DL>
<DD>获得编号字体属性。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号字体属性。 <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"); FontAttribute fontAttr = new FontAttribute(); fontAttr.setFontFamily("Times New Roman"); fontAttr.setFontSize(12); WordBulletLevel bullet = baseText.getWordBulletLevel(BulletNumberConstants.LIST_NUMBER,1); bullet.setFontAttribute(fontAttr); FontAttribute fontAttr = bullet.getFontAttribute(); if (fontAttr != null) { System.out.println("当前编号字体名称为:"+fontAttr.getFontFamily()+"大小为:"+fontAttr.getFontSize()); } else { System.out.println("不存在字体属性"); } </pre><DT><B>另请参见:</B><DD><A HREF="../../../../../application/workbooks/workbook/style/font/FontAttribute.html" title="application.workbooks.workbook.style.font 中的类"><CODE>FontAttribute</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getLinkedStyle()"><!-- --></A><H3>
getLinkedStyle</H3>
<PRE>
public int <B>getLinkedStyle</B>()</PRE>
<DL>
<DD>获取链接级别到样式,只有多级编号才有效。
<P>
<DD><DL>
<DT><B>返回:</B><DD>当前编号指定范围文本的样式 <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); baseText.setOutlinedNumber(2,30,levels,false); System.out.println("级别1的编号链接级别到样式为:"+levels[0].getLinkedStyle()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getNumberAlignment()"><!-- --></A><H3>
getNumberAlignment</H3>
<PRE>
public int <B>getNumberAlignment</B>()</PRE>
<DL>
<DD>获取编号对齐位置。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号对齐类型索引值,其常量和相应的值如下: <pre> BulletNumberConstants.LEFT = 0(编号位置左对齐); BulletNumberConstants.CENTER = 1(编号位置居中); BulletNumberConstants.RIGHT = 2(编号位置右对齐) <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); baseText.setBulletedNumber(2,6,bullet,false); System.out.println("当前编号的对齐类型为:"+bullet.getNumberAlignment()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getNumberFormat()"><!-- --></A><H3>
getNumberFormat</H3>
<PRE>
public java.lang.String <B>getNumberFormat</B>()</PRE>
<DL>
<DD>获取编号的格式。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号格式 <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); baseText.setBulletedNumber(2,6,bullet,false); System.out.println("获取编号的格式为:"+bullet.getNumberFormat()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getNumberPosition()"><!-- --></A><H3>
getNumberPosition</H3>
<PRE>
public float <B>getNumberPosition</B>()</PRE>
<DL>
<DD>获取编号缩进位置(默认取磅值)。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号缩进位置,范围在-1584到1584磅之间 说明:get方法默认返回为磅值,如果要用其他的度量单位(英寸、厘米、毫米、十二点活字),可以用 application.util.Utilities.pointToOther(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); baseText.setBulletedNumber(2,6,bullet,false); System.out.println("当前编号的缩进位置为:"+bullet.getNumberPosition()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getNumberStyle()"><!-- --></A><H3>
getNumberStyle</H3>
<PRE>
public int <B>getNumberStyle</B>()</PRE>
<DL>
<DD>获取编号样式。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号样式索引号 <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); System.out.println("获得的编号的类型为:"+bullet.getNumberStyle()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getPicturePath()"><!-- --></A><H3>
getPicturePath</H3>
<PRE>
public java.lang.String <B>getPicturePath</B>()</PRE>
<DL>
<DD>获得编号图片。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号图片路径 <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); System.out.println("当前项目符号为图片,其路径为: "+bullet.getPicturePath()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getResetNumberLevel()"><!-- --></A><H3>
getResetNumberLevel</H3>
<PRE>
public int <B>getResetNumberLevel</B>()</PRE>
<DL>
<DD>获取在其后重新编号的级别,只有多级编号才有效。
<P>
<DD><DL>
<DT><B>返回:</B><DD>重新编号的级别 <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); baseText.setOutlinedNumber(2,30,levels,false); System.out.println("级别4的编号在其后重新编号的级别为:"+levels[3].getResetNumberLevel()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getStartAt()"><!-- --></A><H3>
getStartAt</H3>
<PRE>
public int <B>getStartAt</B>()</PRE>
<DL>
<DD>得到起始编号。
<P>
<DD><DL>
<DT><B>返回:</B><DD>起始编号 <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); baseText.setBulletedNumber(2,6,bullet,false); System.out.println("当前编号的起始编号为:"+bullet.getStartAt()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getSymbol()"><!-- --></A><H3>
getSymbol</H3>
<PRE>
public char <B>getSymbol</B>()</PRE>
<DL>
<DD>获取项目符号。
<P>
<DD><DL>
<DT><B>返回:</B><DD>项目符号 <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); System.out.println("获取的项目符号为:"+bullet.getSymbol()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getTabPosition()"><!-- --></A><H3>
getTabPosition</H3>
<PRE>
public float <B>getTabPosition</B>()</PRE>
<DL>
<DD>获取编号后制表位位置(默认取磅值)。
<P>
<DD><DL>
<DT><B>返回:</B><DD>编号后制表位位置,范围在-1584到1584磅之间 说明:get方法默认返回为磅值,如果要用其他的度量单位(英寸、厘米、毫米、十二点活字),可以用 application.util.Utilities.pointToOther(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); baseText.setBulletedNumber(2,6,bullet,false); System.out.println("当前编号后制表位位置为:"+bullet.getTabPosition()); </pre></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -