📄 fillattribute.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0) on Fri Feb 29 09:23:17 CST 2008 -->
<META http-equiv="Content-Type" content="text/html; charset=GB2312">
<TITLE>
FillAttribute (永中集成Office二次开发API文档)
</TITLE>
<META NAME="date" CONTENT="2008-02-29">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FillAttribute (永中集成Office二次开发API文档)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_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></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?application/workbooks/workbook/style/fill/FillAttribute.html" target="_top"><B>框架</B></A>
<A HREF="FillAttribute.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="#constructor_summary">构造方法</A> | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: 字段 | <A HREF="#constructor_detail">构造方法</A> | <A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
application.workbooks.workbook.style.fill</FONT>
<BR>
类 FillAttribute</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../resources/inherit.gif" ALT="继承者 "><B>application.workbooks.workbook.style.fill.FillAttribute</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>FillAttribute</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
该类定义了设置填充属性的方法。 <p>
<P>
<P>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>构造方法摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#FillAttribute()">FillAttribute</A></B>()</CODE>
<BR>
默认构建器。</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>方法摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getFillType()">getFillType</A></B>()</CODE>
<BR>
获得填充类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../application/workbooks/workbook/style/fill/GradientAttribute.html" title="application.workbooks.workbook.style.fill 中的类">GradientAttribute</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getGradientAttribute()">getGradientAttribute</A></B>()</CODE>
<BR>
得到渐进色信息。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getIgnore()">getIgnore</A></B>()</CODE>
<BR>
<B>已过时。</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../application/workbooks/workbook/style/fill/PatternAttribute.html" title="application.workbooks.workbook.style.fill 中的类">PatternAttribute</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getPatternAttribute()">getPatternAttribute</A></B>()</CODE>
<BR>
获取填充效果中的图案属性。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../application/workbooks/workbook/style/fill/PictureAttribute.html" title="application.workbooks.workbook.style.fill 中的类">PictureAttribute</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getPictureAttribute()">getPictureAttribute</A></B>()</CODE>
<BR>
获取填充效果中的图片属性。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getSchemeIndex()">getSchemeIndex</A></B>()</CODE>
<BR>
<B>已过时。</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getTexture()">getTexture</A></B>()</CODE>
<BR>
得到填充效果中的纹理颜色。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../application/workbooks/workbook/style/fill/TextureAttribute.html" title="application.workbooks.workbook.style.fill 中的类">TextureAttribute</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getTextureAttribute()">getTextureAttribute</A></B>()</CODE>
<BR>
得到纹理信息。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html#getTransValue()">getTransValue</A></B>()</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/style/fill/FillAttribute.html#setAuto(boolean)">setAuto</A></B>(boolean isAuto)</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/style/fill/FillAttribute.html#setIgnore(int)">setIgnore</A></B>(int ignore)</CODE>
<BR>
<B>已过时。</B> </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/style/fill/FillAttribute.html#setNoColor()">setNoColor</A></B>()</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/style/fill/FillAttribute.html#setSchemeIndex(int)">setSchemeIndex</A></B>(int schemeIndex)</CODE>
<BR>
<B>已过时。</B> </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/style/fill/FillAttribute.html#setTexture(java.awt.Color)">setTexture</A></B>(java.awt.Color color)</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/style/fill/FillAttribute.html#setTexture(int, int, int)">setTexture</A></B>(int r,
int g,
int b)</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/style/fill/FillAttribute.html#setTransValue(int)">setTransValue</A></B>(int value)</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>
<!-- ========= 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="FillAttribute()"><!-- --></A><H3>
FillAttribute</H3>
<PRE>
public <B>FillAttribute</B>()</PRE>
<DL>
<DD>默认构建器。
<P>
</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="getFillType()"><!-- --></A><H3>
getFillType</H3>
<PRE>
public int <B>getFillType</B>()</PRE>
<DL>
<DD>获得填充类型。
<P>
<DD><DL>
<DT><B>返回:</B><DD>填充类型,-2:无填充色; -1:自动; 0:渐进色;1:纹理;2:图案;3:图片。<p><b>例子:</b><pre> //在控制台输出当前自选图形填充属性中的填充类型。 Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; System.out.println(fill.getFillType()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getGradientAttribute()"><!-- --></A><H3>
getGradientAttribute</H3>
<PRE>
public <A HREF="../../../../../application/workbooks/workbook/style/fill/GradientAttribute.html" title="application.workbooks.workbook.style.fill 中的类">GradientAttribute</A> <B>getGradientAttribute</B>()</PRE>
<DL>
<DD>得到渐进色信息。
<P>
<DD><DL>
<DT><B>返回:</B><DD>渐进色信息<p><b>例子:</b><pre> //添加云形标注,得到其渐进色信息并进行设置。 Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; Shape shape = shapes.addShape(ShapeConstants.SHAPE_CLOUD_CALLOUT, 120, 130, 220, 250); FillAttribute fill = shape.getFillAttribute() ; fill.getGradientAttribute().setColor1(Color.RED); fill.getGradientAttribute().setColor2(new java.awt.Color(51,102,255)); fill.getGradientAttribute().setColorValue(107); fill.getGradientAttribute().setColorTypeIndex(0); fill.getGradientAttribute().setGradientStyleIndex(2); fill.getGradientAttribute().setTextureIndex(0); shape.setFillAttribute(fill); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getIgnore()"><!-- --></A><H3>
getIgnore</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public int <B>getIgnore</B>()</PRE>
<DL>
<DD><B>已过时。</B>
<P>
<DD>获得是否忽略母版的背景图形。
<P>
<DD><DL>
<DT><B>返回:</B><DD>int 返回是否忽略母版的背景图形标志 -1--三态 0--不设置忽略母版的背景图形标志 1--设置忽略母版的背景图形标志<p><b>例子:</b><pre> //在控制台输出当前自选图形填充属性中是否忽略母版的背景图形。 Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; ShapeRange shape = shapes.getRange() ; FillAttribute fill = shape.getFillAttribute() ; System.out.println(fill.getIgnore()); </pre></DL>
</DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -