📄 lineformat.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>
LineFormat (永中集成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="LineFormat (永中集成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/shapes/DocField.html" title="application.workbooks.workbook.shapes 中的类"><B>上一个类</B></A>
<A HREF="../../../../application/workbooks/workbook/shapes/Nodes.html" title="application.workbooks.workbook.shapes 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?application/workbooks/workbook/shapes/LineFormat.html" target="_top"><B>框架</B></A>
<A HREF="LineFormat.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_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
application.workbooks.workbook.shapes</FONT>
<BR>
类 LineFormat</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="继承者 "><B>application.workbooks.workbook.shapes.LineFormat</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>LineFormat</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
该类定义了设置或获取直线类型,设置或获取曲线类型等方法。 <p>
<P>
<P>
<HR>
<P>
<!-- ========== 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/shapes/LineFormat.html#getArrowStyle()">getArrowStyle</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/shapes/LineFormat.html#getBeginArrowStyle()">getBeginArrowStyle</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/shapes/LineFormat.html#getBeginArrowWidth()">getBeginArrowWidth</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/shapes/LineFormat.html#getConnectType()">getConnectType</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/shapes/LineFormat.html#getDash()">getDash</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/shapes/LineFormat.html#getEndArrowStyle()">getEndArrowStyle</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/shapes/LineFormat.html#getEndArrowWidth()">getEndArrowWidth</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/shapes/PatternFormat.html" title="application.workbooks.workbook.shapes 中的类">PatternFormat</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/LineFormat.html#getPatternFormat()">getPatternFormat</A></B>()</CODE>
<BR>
获取当前图形对象的线条的图案。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/LineFormat.html#getWidth()">getWidth</A></B>()</CODE>
<BR>
获取图形对象线条的宽度。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/LineFormat.html#isMakeArrow()">isMakeArrow</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/shapes/LineFormat.html#setArrowStyle(int)">setArrowStyle</A></B>(int index)</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/shapes/LineFormat.html#setBeginArrowStyle(int)">setBeginArrowStyle</A></B>(int beginArrowStyle)</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/shapes/LineFormat.html#setBeginArrowWidth(int)">setBeginArrowWidth</A></B>(int beginArrowWidth)</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/shapes/LineFormat.html#setConnectType(int)">setConnectType</A></B>(int type)</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/shapes/LineFormat.html#setDash(int)">setDash</A></B>(int newLineDash)</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/shapes/LineFormat.html#setEndArrowStyle(int)">setEndArrowStyle</A></B>(int endArrowStyle)</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/shapes/LineFormat.html#setEndArrowWidth(int)">setEndArrowWidth</A></B>(int endArrowWidth)</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/shapes/LineFormat.html#setWidth(double)">setWidth</A></B>(double newLineWidth)</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>
<!-- ============ 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="getArrowStyle()"><!-- --></A><H3>
getArrowStyle</H3>
<PRE>
public int <B>getArrowStyle</B>()</PRE>
<DL>
<DD>返回图形对象(直线,连接线)箭头风格的索引值。
<P>
<DD><DL>
<DT><B>返回:</B><DD>当前图形对象(直线,连接线)箭头风格的索引值,为整型值<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; Shape shape = shapes.getShape("直线 1") ; LineFormat line = shape.getLineFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"对象箭头风格为第"+line.getArrowStyle()+"种索引") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getBeginArrowStyle()"><!-- --></A><H3>
getBeginArrowStyle</H3>
<PRE>
public int <B>getBeginArrowStyle</B>()</PRE>
<DL>
<DD>获取图形对象(直线,连接线)的始端箭头样式。
<P>
<DD><DL>
<DT><B>返回:</B><DD>图形对象(直线,连接线)的始端箭头样式,为整型数值 0-无箭头 1-箭头 2-开箭头 3-燕尾箭头 4-菱形箭头 5-椭圆箭头<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; Shape shape = shapes.getShape("直线 1") ; LineFormat line = shape.getLineFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前图形对象始端箭头是第"+line.getBeginArrowStyle()+"种索引") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getBeginArrowWidth()"><!-- --></A><H3>
getBeginArrowWidth</H3>
<PRE>
public int <B>getBeginArrowWidth</B>()</PRE>
<DL>
<DD>获取当前图形对象(直线,连接线)的始端箭头的宽度索引。
<P>
<DD><DL>
<DT><B>返回:</B><DD>当前图形对象(直线,连接线)的始端箭头的宽度,为整型数值<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; Shape shape = shapes.getShape("直线 1") ; LineFormat line = shape.getLineFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前图形对象始端箭头宽度是第"+line.getBeginArrowWidth()+"种索引") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getConnectType()"><!-- --></A><H3>
getConnectType</H3>
<PRE>
public int <B>getConnectType</B>()</PRE>
<DL>
<DD>获取连接线类型。
<P>
<DD><DL>
<DT><B>返回:</B><DD>连接线类型,为整型值,如果连接线为“直线连接线”类型,返回0;如果连接线为“肘形连接线”类型,返回1;如果连接线为“曲线连接线”类型,返回2 ,如果为非连接类型,返回-1<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; Shape shape = shapes.getShape("直线 1") ; LineFormat line = shape.getLineFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"这是第"+line.getConnectType()+"种连接线类型") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getDash()"><!-- --></A><H3>
getDash</H3>
<PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -