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

📄 column.html

📁 永中OFFICE二次开发帮助文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<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>
&nbsp;
<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="delete()"><!-- --></A><H3>
delete</H3>
<PRE>
public void <B>delete</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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); column.delete(); </pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getBorderAttribute()"><!-- --></A><H3>
getBorderAttribute</H3>
<PRE>
public <A HREF="../../../../application/workbooks/workbook/style/border/BorderAttribute.html" title="application.workbooks.workbook.style.border 中的类">BorderAttribute</A> <B>getBorderAttribute</B>()</PRE>
<DL>
<DD>得到表格列对象外边框的边框属性。
<P>
<DD><DL>

<DT><B>返回:</B><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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); BorderAttribute borderAttribute = column.getBorderAttribute(); System.out.println("返回表格列对象外边框的类型为:"+ borderAttribute.getBorderType()); </pre><DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Column.html#setBorderAttribute(application.workbooks.workbook.style.border.BorderAttribute)"><CODE>setBorderAttribute(BorderAttribute)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getCells()"><!-- --></A><H3>
getCells</H3>
<PRE>
public <A HREF="../../../../application/workbooks/workbook/tables/Cells.html" title="application.workbooks.workbook.tables 中的类">Cells</A> <B>getCells</B>()</PRE>
<DL>
<DD>返回当前表格列的单元格集合。
<P>
<DD><DL>

<DT><B>返回:</B><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.Columns columns = table.getColumns); Column column = columns.getColumn(2); Cells cells = column.getCells(); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="getColumnWidth()"><!-- --></A><H3>
getColumnWidth</H3>
<PRE>
public float <B>getColumnWidth</B>()</PRE>
<DL>
<DD>得到当前表格列的宽度。
<P>
<DD><DL>

<DT><B>返回:</B><DD>当前表格列的宽度 说明:列宽的度量类型不同,列宽值的语义也不一样。如果,度量类型为固定值,则返回列宽值为磅值,范围在0~1584磅; 如果度量类型为百分比,则返回列宽值是一个相对值,范围在0~100%。 <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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); System.out.println("当前表格列的宽度为:" + column.getColumnWidth()); </pre><DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Column.html#setColumnWidth(float)"><CODE>setColumnWidth(float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getColumnWidthMeasure()"><!-- --></A><H3>
getColumnWidthMeasure</H3>
<PRE>
public int <B>getColumnWidthMeasure</B>()</PRE>
<DL>
<DD>得到当前表格列的宽度的度量类型。
<P>
<DD><DL>

<DT><B>返回:</B><DD>列宽度的度量类型,只能取下面值之一: <pre> TableConstants.COLUMN_WIDTH_NONE_SET  不指定列宽度 TableConstants.COLUMN_WIDTH_MEASURE   指定列宽度为绝对值(默认以磅值为单位) TableConstants.COLUMN_WIDTH_PRECENT   指定列宽度为百分比 </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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); System.out.println("当前表格列宽度的度量类型为:" + column.getColumnWidthMeasure()); </pre><DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Column.html#setColumnWidthMeasure(int)"><CODE>setColumnWidthMeasure(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getRowCount()"><!-- --></A><H3>
getRowCount</H3>
<PRE>
public int <B>getRowCount</B>()</PRE>
<DL>
<DD>得到当前表格列的行数。
<P>
<DD><DL>

<DT><B>返回:</B><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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); System.out.println("当前列对象共有" + column.getRowCount() + "行"); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="getShadingAttribute()"><!-- --></A><H3>
getShadingAttribute</H3>
<PRE>
public <A HREF="../../../../application/workbooks/workbook/style/border/ShadingAttribute.html" title="application.workbooks.workbook.style.border 中的类">ShadingAttribute</A> <B>getShadingAttribute</B>()</PRE>
<DL>
<DD>得到表格列对象的底纹属性。
<P>
<DD><DL>

<DT><B>返回:</B><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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); ShadingAttribute shadingAttribute = column.getShadingAttribute(); System.out.println("返回列对象的底纹图案索引:"+ shadingAttribute.getTextureIndex()); </pre><DT><B>另请参见:</B><DD><A HREF="../../../../application/workbooks/workbook/tables/Column.html#setShadingAttribute(application.workbooks.workbook.style.border.ShadingAttribute)"><CODE>setShadingAttribute(ShadingAttribute)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="nextColumn()"><!-- --></A><H3>
nextColumn</H3>
<PRE>
public <A HREF="../../../../application/workbooks/workbook/tables/Column.html" title="application.workbooks.workbook.tables 中的类">Column</A> <B>nextColumn</B>()</PRE>
<DL>
<DD>得到当前表格列的右边一个列对象。
<P>
<DD><DL>

<DT><B>返回:</B><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.Columns columns = table.getColumns(); Column column = columns.getColumn(2); Column rightColumn = column.nextColumn(); rightColumn.select(); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="previousColumn()"><!-- --></A><H3>
previousColumn</H3>
<PRE>
public <A HREF="../../../../application/workbooks/workbook/tables/Column.html" title="application.workbooks.workbook.tables 中的类">Column</A> <B>previousColumn</B>()</PRE>
<DL>
<DD>得到当前表格列的左边一个列对象。
<P>
<DD><DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -