📄 barcode.html
字号:
<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/barcode/Barcode.html#setBackground(java.awt.Color)">setBackground</A></B>(java.awt.Color backgroundColor)</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/barcode/Barcode.html#setBarcodeInfo(application.workbooks.workbook.documents.document.barcode.BarcodeInfo)">setBarcodeInfo</A></B>(<A HREF="../../../../../../application/workbooks/workbook/documents/document/barcode/BarcodeInfo.html" title="application.workbooks.workbook.documents.document.barcode 中的类">BarcodeInfo</A> attr)</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/barcode/Barcode.html#setCodeColumns(int)">setCodeColumns</A></B>(int codeColumns)</CODE>
<BR>
设置列数,最小3列,最大32列。</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/barcode/Barcode.html#setCodeRows(int)">setCodeRows</A></B>(int codeRows)</CODE>
<BR>
设置行数,最小5行,最大90行。</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/barcode/Barcode.html#setContent(java.lang.String)">setContent</A></B>(java.lang.String content)</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/barcode/Barcode.html#setErrorLevel(int)">setErrorLevel</A></B>(int errorLevel)</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/barcode/Barcode.html#setForeground(java.awt.Color)">setForeground</A></B>(java.awt.Color foregroundColor)</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/barcode/Barcode.html#setModuleHeight(int)">setModuleHeight</A></B>(int moduleHeight)</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/barcode/Barcode.html#setModuleWidth(int)">setModuleWidth</A></B>(int moduleWidth)</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/barcode/Barcode.html#setPDF417(boolean)">setPDF417</A></B>(boolean isPDF417)</CODE>
<BR>
设置是PDF417还是公文条形码。</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>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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="ERROR_LEVEL_0"><!-- --></A><H3>
ERROR_LEVEL_0</H3>
<PRE>
public static final int <B>ERROR_LEVEL_0</B></PRE>
<DL>
<DD>容错等级 - 0
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_0">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_1"><!-- --></A><H3>
ERROR_LEVEL_1</H3>
<PRE>
public static final int <B>ERROR_LEVEL_1</B></PRE>
<DL>
<DD>容错等级 - 1
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_1">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_2"><!-- --></A><H3>
ERROR_LEVEL_2</H3>
<PRE>
public static final int <B>ERROR_LEVEL_2</B></PRE>
<DL>
<DD>容错等级 - 2
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_2">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_3"><!-- --></A><H3>
ERROR_LEVEL_3</H3>
<PRE>
public static final int <B>ERROR_LEVEL_3</B></PRE>
<DL>
<DD>容错等级 - 3
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_3">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_4"><!-- --></A><H3>
ERROR_LEVEL_4</H3>
<PRE>
public static final int <B>ERROR_LEVEL_4</B></PRE>
<DL>
<DD>容错等级 - 4
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_4">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_5"><!-- --></A><H3>
ERROR_LEVEL_5</H3>
<PRE>
public static final int <B>ERROR_LEVEL_5</B></PRE>
<DL>
<DD>容错等级 - 5
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_5">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_6"><!-- --></A><H3>
ERROR_LEVEL_6</H3>
<PRE>
public static final int <B>ERROR_LEVEL_6</B></PRE>
<DL>
<DD>容错等级 - 6
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_6">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_7"><!-- --></A><H3>
ERROR_LEVEL_7</H3>
<PRE>
public static final int <B>ERROR_LEVEL_7</B></PRE>
<DL>
<DD>容错等级 - 7
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_7">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_8"><!-- --></A><H3>
ERROR_LEVEL_8</H3>
<PRE>
public static final int <B>ERROR_LEVEL_8</B></PRE>
<DL>
<DD>容错等级 - 8
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_8">常量字段值</A></DL>
</DL>
<HR>
<A NAME="ERROR_LEVEL_AUTO"><!-- --></A><H3>
ERROR_LEVEL_AUTO</H3>
<PRE>
public static final int <B>ERROR_LEVEL_AUTO</B></PRE>
<DL>
<DD>容错等级 - 自动
<P>
<DL>
<DT><B>另请参见:</B><DD><A HREF="../../../../../../constant-values.html#application.workbooks.workbook.documents.document.barcode.Barcode.ERROR_LEVEL_AUTO">常量字段值</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_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="Barcode()"><!-- --></A><H3>
Barcode</H3>
<PRE>
public <B>Barcode</B>()</PRE>
<DL>
</DL>
<!-- ============ 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="getBackground()"><!-- --></A><H3>
getBackground</H3>
<PRE>
public java.awt.Color <B>getBackground</B>()</PRE>
<DL>
<DD>返回背景色
<P>
<DD><DL>
<DT><B>返回:</B><DD>背景色 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); System.out.println("background is "+barcode.getBackground()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getBarcodeInfo()"><!-- --></A><H3>
getBarcodeInfo</H3>
<PRE>
public <A HREF="../../../../../../application/workbooks/workbook/documents/document/barcode/BarcodeInfo.html" title="application.workbooks.workbook.documents.document.barcode 中的类">BarcodeInfo</A> <B>getBarcodeInfo</B>()</PRE>
<DL>
<DD>返回公文二维条码信息
<P>
<DD><DL>
<DT><B>返回:</B><DD>公文二维条码信息 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(false); BarcodeInfo attr = barcode.getBarcodeInfo(); attr.setTitle("test"); barcode.setBarcodeInfo(attr); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); System.out.println("公文二维条码信息 : "+barcode.getBarcodeInfo()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getCodeColumns()"><!-- --></A><H3>
getCodeColumns</H3>
<PRE>
public int <B>getCodeColumns</B>()</PRE>
<DL>
<DD>返回列数
<P>
<DD><DL>
<DT><B>返回:</B><DD>列数 <p> <b>例子:</b> <pre> Documents docs = Application.getWorkbooks().getActiveWorkbook().getDocuments(); Document doc = docs.getActiveDocument(); Barcode barcode = new Barcode(); barcode.setPDF417(true); barcode.setContent("aaa"); barcode.setAutoSize(false); barcode.setCodeColumns(4); barcode.setForeground(java.awt.Color.RED); barcode.setBackground(java.awt.Color.BLUE); doc.insertBarcode(barcode); System.out.println("列数 : "+barcode.getCodeColumns()); </pre></DL>
</DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -