📄 textframe.html
字号:
shape.getTextFrame().setMarginLeft(6.0f); System.out.println(shape.getTextFrame().getMarginTop()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getOrientationIndex()"><!-- --></A><H3>
getOrientationIndex</H3>
<PRE>
public int <B>getOrientationIndex</B>()</PRE>
<DL>
<DD>得到文本框内文本方向。
<P>
<DD><DL>
<DT><B>返回:</B><DD>文本方向类型索引值 0-正常 1-正常竖排 2-270度旋转 3-90度旋转 4-270度竖排 <p> <b>例子:</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); System.out.println(shape.getTextFrame().getOrientationIndex()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getTextBoxAnchorPoint()"><!-- --></A><H3>
getTextBoxAnchorPoint</H3>
<PRE>
public int <B>getTextBoxAnchorPoint</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") ; shape.getTextFrame().setTextBoxAnchorPoint(2) ; System.out.println(shape.getTextFrame().getTextBoxAnchorPoint());</pre></DL>
</DD>
</DL>
<HR>
<A NAME="isAutoSize()"><!-- --></A><H3>
isAutoSize</H3>
<PRE>
public boolean <B>isAutoSize</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"); shape.getTextFrame().setAutoSize(true); System.out.println(shape.getTextFrame().isAutoSize()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="isTextRotateWithShape()"><!-- --></A><H3>
isTextRotateWithShape</H3>
<PRE>
public boolean <B>isTextRotateWithShape</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"); shape.getTextFrame().setTextRotateWithShape(true); System.out.println(shape.getTextFrame().isTextRotateWithShape()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="isWordWrap()"><!-- --></A><H3>
isWordWrap</H3>
<PRE>
public boolean <B>isWordWrap</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"); shape.getTextFrame().setWordWrap(true); System.out.println(shape.getTextFrame().isWordWrap()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setAutoSize(boolean)"><!-- --></A><H3>
setAutoSize</H3>
<PRE>
public void <B>setAutoSize</B>(boolean isAutoSize)</PRE>
<DL>
<DD>设置文本框的自适应文字
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>isAutoSize</CODE> - 文本框是否自适应文字 <p> <b>例子</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setAutoSize(true); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setMarginBottom(float)"><!-- --></A><H3>
setMarginBottom</H3>
<PRE>
public void <B>setMarginBottom</B>(float value)</PRE>
<DL>
<DD>设置内部下边距。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>value</CODE> - 下边距的值 <p> <b>例子:</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setMarginBottom(6.0f); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setMarginLeft(float)"><!-- --></A><H3>
setMarginLeft</H3>
<PRE>
public void <B>setMarginLeft</B>(float value)</PRE>
<DL>
<DD>设置内部左边距。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>value</CODE> - 左边距的值</pre> <p> <b>例子:</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setMarginLeft(6.0f); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setMarginRight(float)"><!-- --></A><H3>
setMarginRight</H3>
<PRE>
public void <B>setMarginRight</B>(float value)</PRE>
<DL>
<DD>设置内部右边距。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>value</CODE> - 右边距的值 <p> <b>例子:</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setMarginRight(6.0f); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setMarginTop(float)"><!-- --></A><H3>
setMarginTop</H3>
<PRE>
public void <B>setMarginTop</B>(float value)</PRE>
<DL>
<DD>设置内部上边距。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>value</CODE> - 上边距的值 <p> <b>例子:</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setMarginTop(6.0f); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setOrientationIndex(int)"><!-- --></A><H3>
setOrientationIndex</H3>
<PRE>
public void <B>setOrientationIndex</B>(int index)</PRE>
<DL>
<DD>设置文本框内文本的方向。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 文本的方向类型,0-正常 1-正常竖排 2-270度旋转 3-90度旋转 4-270度竖排 <p> <b>例子:</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setOrientationIndex(3); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setTextBoxAnchorPoint(int)"><!-- --></A><H3>
setTextBoxAnchorPoint</H3>
<PRE>
public void <B>setTextBoxAnchorPoint</B>(int index)</PRE>
<DL>
<DD>设置文本锁定点。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 文本锁定点位置索引值,如为0,表示顶部;如为1,表示中部; 如为2,表示底部,如为3,表示顶部居中; 如为4,表示中部居中;如为5,表示底部居中<p><b>例子:</b><pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ; Shape shape = shapes.getShape("文本框 1") ; shape.getTextFrame().setTextBoxAnchorPoint(2) ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setTextRotateWithShape(boolean)"><!-- --></A><H3>
setTextRotateWithShape</H3>
<PRE>
public void <B>setTextRotateWithShape</B>(boolean rotate)</PRE>
<DL>
<DD>设置文本框自选图形旋转文字
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>rotate</CODE> - 是否随自选图形旋转文字 <p> <b>例子</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setTextRotateWithShape(true); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setWordWrap(boolean)"><!-- --></A><H3>
setWordWrap</H3>
<PRE>
public void <B>setWordWrap</B>(boolean wordWrap)</PRE>
<DL>
<DD>设置文本框的文字换行
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>wordWrap</CODE> - 文字是否换行 <p> <b>例子</b> <pre> Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes(); Shape shape = shapes.getShape("文本框 1"); shape.getTextFrame().setWordWrap(true); </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/shapes/TextEffectFormat.html" title="application.workbooks.workbook.shapes 中的类"><B>上一个类</B></A>
<A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.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/TextFrame.html" target="_top"><B>框架</B></A>
<A HREF="TextFrame.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 + -