📄 patternattribute.html
字号:
<b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().getBackgroundIndex();</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getForeground()"><!-- --></A><H3>
getForeground</H3>
<PRE>
public java.awt.Color <B>getForeground</B>()</PRE>
<DL>
<DD>获取图案前景色。
<P>
<DD><DL>
<DT><B>返回:</B><DD>图案前景色<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().getForeground();</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getForegroundIndex()"><!-- --></A><H3>
getForegroundIndex</H3>
<PRE>
public int <B>getForegroundIndex</B>()</PRE>
<DL>
<DD>得到图案前景色索引(仅用于简报制作)。
<P>
<DD><DL>
<DT><B>返回:</B><DD>图案前景色索引<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().getForegroundIndex();</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getTextureIndex()"><!-- --></A><H3>
getTextureIndex</H3>
<PRE>
public int <B>getTextureIndex</B>()</PRE>
<DL>
<DD>获取纹理填充索引值。
<P>
<DD><DL>
<DT><B>返回:</B><DD>纹理填充索引值<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().getTextureIndex(); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setBackground(java.awt.Color)"><!-- --></A><H3>
setBackground</H3>
<PRE>
public void <B>setBackground</B>(java.awt.Color color)</PRE>
<DL>
<DD>设置图案背景。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>color</CODE> - 背景图案颜色<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().setTextureIndex(0); fill.getPatternAttribute().setBackground(Color.RED); fill.getPatternAttribute().setForeground(new java.awt.Color(255,255,0)); shape.setFillAttribute(fill);</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setBackgroundIndex(int)"><!-- --></A><H3>
setBackgroundIndex</H3>
<PRE>
public void <B>setBackgroundIndex</B>(int backgroundIndex)</PRE>
<DL>
<DD>设置图案背景色索引(仅用于简报制作)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>backgroundIndex</CODE> - 背景色索引<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().setBackgroundIndex(2); shape.setFillAttribute(fill);</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setForeground(java.awt.Color)"><!-- --></A><H3>
setForeground</H3>
<PRE>
public void <B>setForeground</B>(java.awt.Color color)</PRE>
<DL>
<DD>设置图案前景色。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>color</CODE> - 图案前景色<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().setTextureIndex(0); fill.getPatternAttribute().setBackground(Color.RED); fill.getPatternAttribute().setForeground(new java.awt.Color(255,255,0)); shape.setFillAttribute(fill);</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setForegroundIndex(int)"><!-- --></A><H3>
setForegroundIndex</H3>
<PRE>
public void <B>setForegroundIndex</B>(int foregroundIndex)</PRE>
<DL>
<DD>根据前景色索引设置图案前景色(仅用于简报制作)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>foregroundIndex</CODE> - 前景色索引<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().setForegroundIndex(2); shape.setFillAttribute(fill);</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setTextureIndex(int)"><!-- --></A><H3>
setTextureIndex</H3>
<PRE>
public void <B>setTextureIndex</B>(int textureIndex)</PRE>
<DL>
<DD>根据纹理索引值设置纹理填充效果。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>textureIndex</CODE> - 纹理索引值<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; fill.getPatternAttribute().setTextureIndex(0); fill.getPatternAttribute().setBackground(Color.RED); fill.getPatternAttribute().setForeground(new java.awt.Color(255,255,0)); shape.setFillAttribute(fill);</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/style/fill/GradientAttribute.html" title="application.workbooks.workbook.style.fill 中的类"><B>上一个类</B></A>
<A HREF="../../../../../application/workbooks/workbook/style/fill/PictureAttribute.html" title="application.workbooks.workbook.style.fill 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?application/workbooks/workbook/style/fill/PatternAttribute.html" target="_top"><B>框架</B></A>
<A HREF="PatternAttribute.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 + -