📄 textboxstyle.hlp
字号:
{smcl}
{* 04mar2005}{...}
{cmd:help textboxstyle}
{hline}
{* index textboxstyle it}{...}
{title:Title}
{p2colset 5 25 27 2}{...}
{p2col :{hi:[G] {it:textboxstyle}} {hline 2}}Choices for the overall look of text including border{p_end}
{p2colreset}{...}
{title:Syntax}
{it:textboxstyle} description
{hline 55}
{cmd:heading} large text suitable for headings
{cmd:subheading} medium text suitable for subheadings
{cmd:body} medium text
{cmd:smbody} small text
{* p1-p15 intentionally not documented}{...}
{hline 55}
{pin}
Other {it:textboxstyles} may be available; type
{cmd:.} {bf:{stata graph query textboxstyle}}
{pin}
to obtain the complete list of {it:textboxstyles} installed on your computer.
{title:Description}
{pstd}
A textbox contains one or more lines of text. {it:textboxstyle} specifies the
overall style of the textbox.
{pstd}
{it:textboxstyle} is specified in the {cmd:style()} option nested within
another option, such as {cmd:title()}:
{phang2}
{cmd:. graph} ...{cmd:, title("My title", style(}{it:textboxstyle}{cmd:))} ...
{pstd}
See {it:{help textbox_options}} for more information on textboxes.
{pstd}
In some cases, you will see that a {it:textboxstylelist} is allowed. A
{it:textboxstylelist} is a sequence of {it:textboxstyles} separated by spaces.
Shorthands are allowed to make specifying the list easier; see
{it:{help stylelists}}.
{title:Remarks}
{pstd}
Remarks are presented under the headings
{help textboxstyle##remarks1:What is a textbox?}
{help textboxstyle##remarks2:What is a textboxstyle?}
{help textboxstyle##remarks3:You do not need to specify a textboxstyle}
{marker remarks1}{...}
{title:What is a textbox?}
{pstd}
A textbox is one or more lines of text that may or may not have a border
around it.
{marker remarks2}{...}
{title:What is a textboxstyle?}
{pstd}
Textboxes are defined by eleven attributes:
{phang2}
1. whether the textbox is vertical or horizontal;
see {it:{help orientationstyle}}
{phang2}
2. the size of the text;
see {it:{help textsizestyle}}
{phang2}
3. the color of the text;
see {it:{help colorstyle}}
{phang2}
4. whether the text is left-justified, centered, or right-justified;
see {it:{help justificationstyle}}
{phang2}
5. how the text aligns with the baseline;
see {it:{help alignmentstyle}}
{phang2}
6. the margin from the text to the border;
see {it:{help marginstyle}}
{phang2}
7. the gap between lines;
see {it:{help relativesize}}
{phang2}
8. whether a border is drawn around the box, and if so
{phang3}
a. The color of the background;
see {it:{help colorstyle}}
{phang3}
b. The overall style of the line used to draw the border,
which includes its color, width, and whether solid or dashed,
etc.; see {it:{help linestyle}}
{phang2}
9. the margin from the border outwards;
see {it:{help marginstyle}}
{p 7 12 2}
10. whether the box is to expand to fill the box in which it is placed
{p 7 12 2}
11. whether the box is to be shifted when placed on the graph;
see {it:{help compassdirstyle}}
{pstd}
The {it:textboxstyle} specifies all eleven of these attributes.
{marker remarks3}{...}
{title:You do not need to specify a textboxstyle}
{pstd}
The {it:textboxstyle} is specified in option
{cmd:tstyle(}{it:textboxstyle}{cmd:)}
{pstd}
Correspondingly, you will find other options are available for setting
each of the individual attributes above; see {it:{help textbox_options}}.
{pstd}
You specify the {it:textboxstyle} when a style exists that is exactly what
you desire or when another style would allow you to specify fewer
changes to obtain what you want.
{title:Also see}
{psee}
Manual: {bf:[G] {it:textboxstyle}}
{psee}
Online:
{it:{help textbox_options}};
{it:{help textstyle}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -