<HTML><HEAD><TITLE>Tk Built-In Commands - text manual page</TITLE></HEAD><BODY>
<DL>
<DD><A HREF="text.htm#M2" NAME="L1267">NAME</A>
<DL><DD>text, tk_textCopy, tk_textCut, tk_textPaste - Create and manipulate text widgets</DL>
<DD><A HREF="text.htm#M3" NAME="L1268">SYNOPSIS</A>
<DL>
<DD><B>text</B> <I>pathName </I>?<I>options</I>?
<DD><B>tk_textCopy</B> <I>pathName</I>
<DD><B>tk_textCut</B> <I>pathName</I>
<DD><B>tk_textPaste</B> <I>pathName</I>
</DL>
<DD><A HREF="text.htm#M4" NAME="L1269">STANDARD OPTIONS</A>
<DL>
<DD><A HREF="options.htm#M-background">-background or -bg, background, Background</A>
<DD><A HREF="options.htm#M-borderwidth">-borderwidth or -bd, borderWidth, BorderWidth</A>
<DD><A HREF="options.htm#M-cursor">-cursor, cursor, Cursor</A>
<DD><A HREF="options.htm#M-exportselection">-exportselection, exportSelection, ExportSelection</A>
<DD><A HREF="options.htm#M-font">-font, font, Font</A>
<DD><A HREF="options.htm#M-foreground">-foreground or -fg, foreground, Foreground</A>
<DD><A HREF="options.htm#M-highlightbackground">-highlightbackground, highlightBackground, HighlightBackground</A>
<DD><A HREF="options.htm#M-highlightcolor">-highlightcolor, highlightColor, HighlightColor</A>
<DD><A HREF="options.htm#M-highlightthickness">-highlightthickness, highlightThickness, HighlightThickness</A>
<DD><A HREF="options.htm#M-insertbackground">-insertbackground, insertBackground, Foreground</A>
<DD><A HREF="options.htm#M-insertborderwidth">-insertborderwidth, insertBorderWidth, BorderWidth</A>
<DD><A HREF="options.htm#M-insertofftime">-insertofftime, insertOffTime, OffTime</A>
<DD><A HREF="options.htm#M-insertontime">-insertontime, insertOnTime, OnTime</A>
<DD><A HREF="options.htm#M-insertwidth">-insertwidth, insertWidth, InsertWidth</A>
<DD><A HREF="options.htm#M-padx">-padx, padX, Pad</A>
<DD><A HREF="options.htm#M-pady">-pady, padY, Pad</A>
<DD><A HREF="options.htm#M-relief">-relief, relief, Relief</A>
<DD><A HREF="options.htm#M-selectbackground">-selectbackground, selectBackground, Foreground</A>
<DD><A HREF="options.htm#M-selectborderwidth">-selectborderwidth, selectBorderWidth, BorderWidth</A>
<DD><A HREF="options.htm#M-selectforeground">-selectforeground, selectForeground, Background</A>
<DD><A HREF="options.htm#M-setgrid">-setgrid, setGrid, SetGrid</A>
<DD><A HREF="options.htm#M-takefocus">-takefocus, takeFocus, TakeFocus</A>
<DD><A HREF="options.htm#M-xscrollcommand">-xscrollcommand, xScrollCommand, ScrollCommand</A>
<DD><A HREF="options.htm#M-yscrollcommand">-yscrollcommand, yScrollCommand, ScrollCommand</A>
</DL>
<DD><A HREF="text.htm#M5" NAME="L1270">WIDGET-SPECIFIC OPTIONS</A>
<DL>
<DD><A HREF="text.htm#M6" NAME="L1271">-autoseparators, autoSeparators, AutoSeparators</A>
<DD><A HREF="text.htm#M7" NAME="L1272">-height, height, Height</A>
<DD><A HREF="text.htm#M8" NAME="L1273">-maxundo, maxUndo, MaxUndo</A>
<DD><A HREF="text.htm#M9" NAME="L1274">-spacing1, spacing1, Spacing1</A>
<DD><A HREF="text.htm#M10" NAME="L1275">-spacing2, spacing2, Spacing2</A>
<DD><A HREF="text.htm#M11" NAME="L1276">-spacing3, spacing3, Spacing3</A>
<DD><A HREF="text.htm#M12" NAME="L1277">-state, state, State</A>
<DD><A HREF="text.htm#M13" NAME="L1278">-tabs, tabs, Tabs</A>
<DD><A HREF="text.htm#M14" NAME="L1279">-undo, undo, Undo</A>
<DD><A HREF="text.htm#M15" NAME="L1280">-width, width, Width</A>
<DD><A HREF="text.htm#M16" NAME="L1281">-wrap, wrap, Wrap</A>
</DL>
<DD><A HREF="text.htm#M17" NAME="L1282">DESCRIPTION</A>
<DD><A HREF="text.htm#M18" NAME="L1283">INDICES</A>
<DL>
<DD><A HREF="text.htm#M19" NAME="L1284"><I>line</I><B>.</B><I>char</I></A>
<DD><A HREF="text.htm#M20" NAME="L1285"><B>@</B><I>x</I><B>,</B><I>y</I></A>
<DD><A HREF="text.htm#M21" NAME="L1286"><B>end</B></A>
<DD><A HREF="text.htm#M22" NAME="L1287"><I>mark</I></A>
<DD><A HREF="text.htm#M23" NAME="L1288"><I>tag</I><B>.first</B></A>
<DD><A HREF="text.htm#M24" NAME="L1289"><I>tag</I><B>.last</B></A>
<DD><A HREF="text.htm#M25" NAME="L1290"><I>pathName</I></A>
<DD><A HREF="text.htm#M26" NAME="L1291"><I>imageName</I></A>
</DL>
<DL>
<DD><A HREF="text.htm#M27" NAME="L1292"><B>+ </B><I>count</I><B> chars</B></A>
<DD><A HREF="text.htm#M28" NAME="L1293"><B>- </B><I>count</I><B> chars</B></A>
<DD><A HREF="text.htm#M29" NAME="L1294"><B>+ </B><I>count</I><B> lines</B></A>
<DD><A HREF="text.htm#M30" NAME="L1295"><B>- </B><I>count</I><B> lines</B></A>
<DD><A HREF="text.htm#M31" NAME="L1296"><B>linestart</B></A>
<DD><A HREF="text.htm#M32" NAME="L1297"><B>lineend</B></A>
<DD><A HREF="text.htm#M33" NAME="L1298"><B>wordstart</B></A>
<DD><A HREF="text.htm#M34" NAME="L1299"><B>wordend</B></A>
</DL>
<DD><A HREF="text.htm#M35" NAME="L1300">TAGS</A>
<DL>
<DD><A HREF="text.htm#M36" NAME="L1301"><B>-background </B><I>color</I></A>
<DD><A HREF="text.htm#M37" NAME="L1302"><B>-bgstipple </B><I>bitmap</I></A>
<DD><A HREF="text.htm#M38" NAME="L1303"><B>-borderwidth </B><I>pixels</I></A>
<DD><A HREF="text.htm#M39" NAME="L1304"><B>-elide </B><I>boolean</I></A>
<DD><A HREF="text.htm#M40" NAME="L1305"><B>-fgstipple </B><I>bitmap</I></A>
<DD><A HREF="text.htm#M41" NAME="L1306"><B>-font </B><I>fontName</I></A>
<DD><A HREF="text.htm#M42" NAME="L1307"><B>-foreground </B><I>color</I></A>
<DD><A HREF="text.htm#M43" NAME="L1308"><B>-justify </B><I>justify</I></A>
<DD><A HREF="text.htm#M44" NAME="L1309"><B>-lmargin1 </B><I>pixels</I></A>
<DD><A HREF="text.htm#M45" NAME="L1310"><B>-lmargin2 </B><I>pixels</I></A>
<DD><A HREF="text.htm#M46" NAME="L1311"><B>-offset </B><I>pixels</I></A>
<DD><A HREF="text.htm#M47" NAME="L1312"><B>-overstrike </B><I>boolean</I></A>
<DD><A HREF="text.htm#M48" NAME="L1313"><B>-relief </B><I>relief</I></A>
<DD><A HREF="text.htm#M49" NAME="L1314"><B>-rmargin </B><I>pixels</I></A>
<DD><A HREF="text.htm#M50" NAME="L1315"><B>-spacing1 </B><I>pixels</I></A>
<DD><A HREF="text.htm#M51" NAME="L1316"><B>-spacing2 </B><I>pixels</I></A>
<DD><A HREF="text.htm#M52" NAME="L1317"><B>-spacing3 </B><I>pixels</I></A>
<DD><A HREF="text.htm#M53" NAME="L1318"><B>-tabs </B><I>tabList</I></A>
<DD><A HREF="text.htm#M54" NAME="L1319"><B>-underline </B><I>boolean</I></A>
<DD><A HREF="text.htm#M55" NAME="L1320"><B>-wrap </B><I>mode</I></A>
</DL>
<DD><A HREF="text.htm#M56" NAME="L1321">MARKS</A>
<DD><A HREF="text.htm#M57" NAME="L1322">EMBEDDED WINDOWS</A>
<DL>
<DD><A HREF="text.htm#M58" NAME="L1323"><B>-align </B><I>where</I></A>
<DD><A HREF="text.htm#M59" NAME="L1324"><B>-create </B><I>script</I></A>
<DD><A HREF="text.htm#M60" NAME="L1325"><B>-padx </B><I>pixels</I></A>
<DD><A HREF="text.htm#M61" NAME="L1326"><B>-pady </B><I>pixels</I></A>
<DD><A HREF="text.htm#M62" NAME="L1327"><B>-stretch </B><I>boolean</I></A>
<DD><A HREF="text.htm#M63" NAME="L1328"><B>-window </B><I>pathName</I></A>
</DL>
<DD><A HREF="text.htm#M64" NAME="L1329">EMBEDDED IMAGES</A>
<DL>
<DD><A HREF="text.htm#M65" NAME="L1330"><B>-align </B><I>where</I></A>
<DD><A HREF="text.htm#M66" NAME="L1331"><B>-image </B><I>image</I></A>
<DD><A HREF="text.htm#M67" NAME="L1332"><B>-name </B><I>ImageName</I></A>
<DD><A HREF="text.htm#M68" NAME="L1333"><B>-padx </B><I>pixels</I></A>
<DD><A HREF="text.htm#M69" NAME="L1334"><B>-pady </B><I>pixels</I></A>
</DL>
<DD><A HREF="text.htm#M70" NAME="L1335">THE SELECTION</A>
<DL>
</DL>
<DD><A HREF="text.htm#M71" NAME="L1336">THE INSERTION CURSOR</A>
<DD><A HREF="text.htm#M72" NAME="L1337">THE MODIFIED FLAG</A>
<DD><A HREF="text.htm#M73" NAME="L1338">THE UNDO MECHANISM</A>
<DD><A HREF="text.htm#M74" NAME="L1339">WIDGET COMMAND</A>
<DL>
<DD><A HREF="text.htm#M75" NAME="L1340"><I>pathName </I><B>bbox </B><I>index</I></A>
<DD><A HREF="text.htm#M76" NAME="L1341"><I>pathName </I><B>cget</B> <I>option</I></A>
<DD><A HREF="text.htm#M77" NAME="L1342"><I>pathName </I><B>compare</B> <I>index1 op index2</I></A>
<DD><A HREF="text.htm#M78" NAME="L1343"><I>pathName </I><B>configure</B> ?<I>option</I>? <I>?value option value ...</I>?</A>
<DD><A HREF="text.htm#M79" NAME="L1344"><I>pathName </I><B>debug </B>?<I>boolean</I>?</A>
</DL>
<DL>
<DD><A HREF="text.htm#M
评论1
最新资源