📄 rows.html
字号:
TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(); rows.removeRow(2); </pre>
<DT><B>抛出:</B>
<DD><CODE>当指定表格行的索引超出范围</CODE><DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Rows.html#delete()"><CODE>delete()</CODE></A>,
<A HREF="../../../../application/workbooks/workbook/tables/Row.html#delete()"><CODE>Row.delete()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="select()"><!-- --></A><H3>
select</H3>
<PRE>
public void <B>select</B>()</PRE>
<DL>
<DD>将当前指定的表格行集合选中。 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); rows.select(); </pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setAllowRowSpan(boolean)"><!-- --></A><H3>
setAllowRowSpan</H3>
<PRE>
public void <B>setAllowRowSpan</B>(boolean rowSpan)</PRE>
<DL>
<DD>设置表格行集合内所有行的跨页换行属性。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>rowSpan</CODE> - 是否跨页换行。如果该属性值为 True,则表示允许分页符拆分表格中一行或多行中的文本 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); rows.setAllowRowSpan(true); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setBorderAttribute(application.workbooks.workbook.style.border.BorderAttribute)"><!-- --></A><H3>
setBorderAttribute</H3>
<PRE>
public void <B>setBorderAttribute</B>(<A HREF="../../../../application/workbooks/workbook/style/border/BorderAttribute.html" title="application.workbooks.workbook.style.border 中的类">BorderAttribute</A> borderAttribute)</PRE>
<DL>
<DD>设置表格行集合外边框的边框属性。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>borderAttribute</CODE> - 外边框属性 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); BorderAttribute borderAttribute = rows.getBorderAttribute(); borderAttribute.setBorderType(BorderAndShadingConstants.BORDERTYPE_BOX); borderAttribute.setBorderLineType(BorderAndShadingConstants.TOP,1); borderAttribute.setBorderLineType(BorderAndShadingConstants.LEFT,3); borderAttribute.setBorderLineType(BorderAndShadingConstants.RIGHT,6); borderAttribute.setBorderLineType(BorderAndShadingConstants.BOTTOM,8); borderAttribute.setBorderLineColor(BorderAndShadingConstants.TOP,Color.RED); borderAttribute.setBorderLineColor(BorderAndShadingConstants.LEFT,Color.CYAN); borderAttribute.setBorderLineColor(BorderAndShadingConstants.RIGHT,Color.YELLOW); borderAttribute.setBorderLineColor(BorderAndShadingConstants.BOTTOM,Color.ORANGE); borderAttribute.setBorderLineWidth(BorderAndShadingConstants.TOP,8f); borderAttribute.setBorderLineWidth(BorderAndShadingConstants.LEFT,5f); borderAttribute.setBorderLineWidth(BorderAndShadingConstants.RIGHT,3f); borderAttribute.setBorderLineWidth(BorderAndShadingConstants.BOTTOM,1f); rows.setBorderAttribute(borderAttribute); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数为NULL<DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Rows.html#getBorderAttribute()"><CODE>getBorderAttribute()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setRowHeight(float)"><!-- --></A><H3>
setRowHeight</H3>
<PRE>
public void <B>setRowHeight</B>(float rowHeight)</PRE>
<DL>
<DD>设置表格行集合内所有行的行高。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>rowHeight</CODE> - 指定表格行的行高,默认以磅值为单位,范围在0~1584磅 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); rows.setRowHeightMeasure(TableConstants.ROW_MINIM_VALUE); rows.setRowHeight(40.0f); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当行高超出范围<DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Rows.html#setRowHeightMeasure(int)"><CODE>setRowHeightMeasure(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setRowHeightMeasure(int)"><!-- --></A><H3>
setRowHeightMeasure</H3>
<PRE>
public void <B>setRowHeightMeasure</B>(int measureType)</PRE>
<DL>
<DD>设置表格行集合内所有行的高度的度量类型。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>measureType</CODE> - 行高度的度量类型,只能取下面值之一: <pre> TableConstants.ROW_HEIGHT_NONE_SET 不指定行高度 TableConstants.ROW_MINIM_VALUE 指定行高度为最小值 TableConstants.ROW_FIXED_VALUE 指定行高度为固定值 </pre> <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); rows.setRowHeightMeasure(TableConstants.ROW_FIXED_VALUE); rows.setRowHeight(40.0f); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当行高度的度量类型不存在<DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Rows.html#setRowHeight(float)"><CODE>setRowHeight(float)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setShadingAttribute(application.workbooks.workbook.style.border.ShadingAttribute)"><!-- --></A><H3>
setShadingAttribute</H3>
<PRE>
public void <B>setShadingAttribute</B>(<A HREF="../../../../application/workbooks/workbook/style/border/ShadingAttribute.html" title="application.workbooks.workbook.style.border 中的类">ShadingAttribute</A> shadingAttribute)</PRE>
<DL>
<DD>设置表格行集合的底纹属性。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>shadingAttribute</CODE> - 底纹属性 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); ShadingAttribute shadingAttribute = rows.getShadingAttribute(); shadingAttribute.setTextureIndex(10); rows.setShadingAttribute(shadingAttribute); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数为NULL<DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Rows.html#getShadingAttribute()"><CODE>getShadingAttribute()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setTitleRow(boolean)"><!-- --></A><H3>
setTitleRow</H3>
<PRE>
public void <B>setTitleRow</B>(boolean isRepeat)</PRE>
<DL>
<DD>设置表格行集合内的所有行是否为标题行。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>isRepeat</CODE> - 是否为标题行。如果该属性值为 True,则表示指定行可以以标题行形式重复出现在各页顶端 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); TextRange range = doc.getRange(0); Tables tables = doc.getTables(); Table table = tables.addTable(range, 5, 5); application.workbooks.workbook.tables.Rows rows = table.getRows(2, 3); rows.setTitleRow(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/tables/Row.html" title="application.workbooks.workbook.tables 中的类"><B>上一个类</B></A>
<A HREF="../../../../application/workbooks/workbook/tables/Table.html" title="application.workbooks.workbook.tables 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?application/workbooks/workbook/tables/Rows.html" target="_top"><B>框架</B></A>
<A HREF="Rows.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 + -