ts-appendix-enums.md 19.0 KB
Newer Older
Z
zengyawen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
# Built-in Enums<a name="EN-US_TOPIC_0000001111421446"></a>

## Alignment Enums<a name="section1145418513159"></a>

<a name="table1070493410237"></a>
<table><thead align="left"><tr id="row774018347233"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p117401834182315"><a name="p117401834182315"></a><a name="p117401834182315"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p16740103417236"><a name="p16740103417236"></a><a name="p16740103417236"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row67401934132311"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1740113492311"><a name="p1740113492311"></a><a name="p1740113492311"></a>TopStart</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p07409341237"><a name="p07409341237"></a><a name="p07409341237"></a>Top start.</p>
</td>
</tr>
<tr id="row117406346239"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p374015344237"><a name="p374015344237"></a><a name="p374015344237"></a>Top</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1774103414230"><a name="p1774103414230"></a><a name="p1774103414230"></a>Horizontally centered on the top.</p>
</td>
</tr>
<tr id="row1374143482316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1274173462312"><a name="p1274173462312"></a><a name="p1274173462312"></a>TopEnd</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p9741434142320"><a name="p9741434142320"></a><a name="p9741434142320"></a>Top end.</p>
</td>
</tr>
<tr id="row77411534102311"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p147411534132313"><a name="p147411534132313"></a><a name="p147411534132313"></a>Start</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p3741734162310"><a name="p3741734162310"></a><a name="p3741734162310"></a>Vertically centered start.</p>
</td>
</tr>
<tr id="row1974143472312"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1074112342238"><a name="p1074112342238"></a><a name="p1074112342238"></a>Center</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p197411834112318"><a name="p197411834112318"></a><a name="p197411834112318"></a>Horizontally and vertically centered.</p>
</td>
</tr>
<tr id="row2074153482316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1374183442314"><a name="p1374183442314"></a><a name="p1374183442314"></a>End</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p15741634162312"><a name="p15741634162312"></a><a name="p15741634162312"></a>Vertically centered end.</p>
</td>
</tr>
<tr id="row474123472315"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p0741113442313"><a name="p0741113442313"></a><a name="p0741113442313"></a>BottomStart</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1674143442311"><a name="p1674143442311"></a><a name="p1674143442311"></a>Bottom start.</p>
</td>
</tr>
<tr id="row1474183412230"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p18741163414233"><a name="p18741163414233"></a><a name="p18741163414233"></a>Bottom</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p11741113462314"><a name="p11741113462314"></a><a name="p11741113462314"></a>Horizontally centered on the bottom.</p>
</td>
</tr>
<tr id="row47413343231"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p197417348233"><a name="p197417348233"></a><a name="p197417348233"></a>BottomEnd</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p27411434112313"><a name="p27411434112313"></a><a name="p27411434112313"></a>Bottom end.</p>
</td>
</tr>
</tbody>
</table>

## ItemAlign Enums<a name="section14211428171612"></a>

<a name="table1575224112180"></a>
<table><thead align="left"><tr id="row16786941101817"><th class="cellrowborder" valign="top" width="37.54%" id="mcps1.1.3.1.1"><p id="p16951125924517"><a name="p16951125924517"></a><a name="p16951125924517"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="62.46000000000001%" id="mcps1.1.3.1.2"><p id="p1778604161812"><a name="p1778604161812"></a><a name="p1778604161812"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row9786194191813"><td class="cellrowborder" valign="top" width="37.54%" headers="mcps1.1.3.1.1 "><p id="p2786114171811"><a name="p2786114171811"></a><a name="p2786114171811"></a>Auto</p>
</td>
<td class="cellrowborder" valign="top" width="62.46000000000001%" headers="mcps1.1.3.1.2 "><p id="p878614171812"><a name="p878614171812"></a><a name="p878614171812"></a>The default configuration in the Flex container is used.</p>
</td>
</tr>
<tr id="row1578664131813"><td class="cellrowborder" valign="top" width="37.54%" headers="mcps1.1.3.1.1 "><p id="p578634141819"><a name="p578634141819"></a><a name="p578634141819"></a>Start</p>
</td>
<td class="cellrowborder" valign="top" width="62.46000000000001%" headers="mcps1.1.3.1.2 "><p id="p1578614415184"><a name="p1578614415184"></a><a name="p1578614415184"></a>The elements are in the Flex container, top-aligned in the cross-axis direction</p>
</td>
</tr>
<tr id="row2078654191813"><td class="cellrowborder" valign="top" width="37.54%" headers="mcps1.1.3.1.1 "><p id="p57861541171815"><a name="p57861541171815"></a><a name="p57861541171815"></a>Center</p>
</td>
<td class="cellrowborder" valign="top" width="62.46000000000001%" headers="mcps1.1.3.1.2 "><p id="p478694114180"><a name="p478694114180"></a><a name="p478694114180"></a>The elements are in the Flex container, centered in the cross-axis direction.</p>
</td>
</tr>
<tr id="row12786144113184"><td class="cellrowborder" valign="top" width="37.54%" headers="mcps1.1.3.1.1 "><p id="p117869414189"><a name="p117869414189"></a><a name="p117869414189"></a>End</p>
</td>
<td class="cellrowborder" valign="top" width="62.46000000000001%" headers="mcps1.1.3.1.2 "><p id="p20786104115186"><a name="p20786104115186"></a><a name="p20786104115186"></a>The elements are in the Flex container, bottom-aligned in the cross-axis direction.</p>
</td>
</tr>
<tr id="row4786194112185"><td class="cellrowborder" valign="top" width="37.54%" headers="mcps1.1.3.1.1 "><p id="p5787341171818"><a name="p5787341171818"></a><a name="p5787341171818"></a>Stretch</p>
</td>
<td class="cellrowborder" valign="top" width="62.46000000000001%" headers="mcps1.1.3.1.2 "><p id="p197871341131818"><a name="p197871341131818"></a><a name="p197871341131818"></a>The elements are in the Flex container, stretched and padded in the cross-axis direction. If the size is not set, the elements are stretched to the container size.</p>
</td>
</tr>
<tr id="row1678720416188"><td class="cellrowborder" valign="top" width="37.54%" headers="mcps1.1.3.1.1 "><p id="p5787174114180"><a name="p5787174114180"></a><a name="p5787174114180"></a>Baseline</p>
</td>
<td class="cellrowborder" valign="top" width="62.46000000000001%" headers="mcps1.1.3.1.2 "><p id="p1978713413181"><a name="p1978713413181"></a><a name="p1978713413181"></a>The elements are in the Flex container, text baseline aligned in the cross-axis direction.</p>
</td>
</tr>
</tbody>
</table>

## LineCapStyle Enums<a name="section549694781614"></a>

<a name="table12144170154116"></a>
<table><thead align="left"><tr id="row1314430184118"><th class="cellrowborder" valign="top" width="25.2%" id="mcps1.1.3.1.1"><p id="p1614414014416"><a name="p1614414014416"></a><a name="p1614414014416"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="74.8%" id="mcps1.1.3.1.2"><p id="p1314415074113"><a name="p1314415074113"></a><a name="p1314415074113"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row61441505417"><td class="cellrowborder" valign="top" width="25.2%" headers="mcps1.1.3.1.1 "><p id="p191443034117"><a name="p191443034117"></a><a name="p191443034117"></a>Butt</p>
</td>
<td class="cellrowborder" valign="top" width="74.8%" headers="mcps1.1.3.1.2 "><p id="p121447017412"><a name="p121447017412"></a><a name="p121447017412"></a>The ends of dividing lines are square.</p>
</td>
</tr>
<tr id="row20144801418"><td class="cellrowborder" valign="top" width="25.2%" headers="mcps1.1.3.1.1 "><p id="p17145110194110"><a name="p17145110194110"></a><a name="p17145110194110"></a>Round</p>
</td>
<td class="cellrowborder" valign="top" width="74.8%" headers="mcps1.1.3.1.2 "><p id="p171454015415"><a name="p171454015415"></a><a name="p171454015415"></a>The ends of dividing lines are rounded.</p>
</td>
</tr>
<tr id="row3357124910413"><td class="cellrowborder" valign="top" width="25.2%" headers="mcps1.1.3.1.1 "><p id="p2357194974115"><a name="p2357194974115"></a><a name="p2357194974115"></a>Square</p>
</td>
<td class="cellrowborder" valign="top" width="74.8%" headers="mcps1.1.3.1.2 "><p id="p18490148422"><a name="p18490148422"></a><a name="p18490148422"></a>The ends of dividing lines are square.</p>
</td>
</tr>
</tbody>
</table>

## PlayMode Enums<a name="section2780178121714"></a>

<a name="table16898204411469"></a>
<table><thead align="left"><tr id="row189380442462"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p19938164417465"><a name="p19938164417465"></a><a name="p19938164417465"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p18938444194618"><a name="p18938444194618"></a><a name="p18938444194618"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row19381644184620"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p793817448464"><a name="p793817448464"></a><a name="p793817448464"></a>Normal</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p293834444618"><a name="p293834444618"></a><a name="p293834444618"></a>The animation is played normally.</p>
</td>
</tr>
<tr id="row7938164454614"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1093817446463"><a name="p1093817446463"></a><a name="p1093817446463"></a>Reverse</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p893819444465"><a name="p893819444465"></a><a name="p893819444465"></a>The animation is played reversely.</p>
</td>
</tr>
<tr id="row09381944124612"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p149381544164610"><a name="p149381544164610"></a><a name="p149381544164610"></a>Alternate</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p7938114411462"><a name="p7938114411462"></a><a name="p7938114411462"></a>The animation is played normally for an odd number of times (1, 3, 5...) and reversely for an even number of times (2, 4, 6...).</p>
</td>
</tr>
<tr id="row99381544114613"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p18938134464616"><a name="p18938134464616"></a><a name="p18938134464616"></a>AlternateReverse</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p6938184414616"><a name="p6938184414616"></a><a name="p6938184414616"></a>The animation is played reversely for an odd number of times (1, 3, 5...) and normally for an even number of times (2, 4, 6...).</p>
</td>
</tr>
</tbody>
</table>

## ImageRepeat Enums<a name="section5656191941718"></a>

<a name="table13256165496"></a>
<table><thead align="left"><tr id="row17325121620499"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p4325101694913"><a name="p4325101694913"></a><a name="p4325101694913"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p23259168496"><a name="p23259168496"></a><a name="p23259168496"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row203257168497"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p9326181610498"><a name="p9326181610498"></a><a name="p9326181610498"></a>X</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1332671610494"><a name="p1332671610494"></a><a name="p1332671610494"></a>Images are repeatedly drawn only on the horizontal axis.</p>
</td>
</tr>
<tr id="row332681634917"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p332681624910"><a name="p332681624910"></a><a name="p332681624910"></a>Y</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p832661615491"><a name="p832661615491"></a><a name="p832661615491"></a>Images are repeatedly drawn only on the vertical axis.</p>
</td>
</tr>
<tr id="row1632671624914"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p93261116124910"><a name="p93261116124910"></a><a name="p93261116124910"></a>XY</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p73261916204919"><a name="p73261916204919"></a><a name="p73261916204919"></a>Images are repeatedly drawn on both axes.</p>
</td>
</tr>
<tr id="row20326516114911"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p832611618499"><a name="p832611618499"></a><a name="p832611618499"></a>NoRepeat</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p432612169492"><a name="p432612169492"></a><a name="p432612169492"></a>Images are not repeatedly drawn.</p>
</td>
</tr>
</tbody>
</table>

## TextDecorationType Enums<a name="section81063305178"></a>

<a name="table618625214598"></a>
<table><thead align="left"><tr id="row9226175210595"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p10226175235920"><a name="p10226175235920"></a><a name="p10226175235920"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p14226205212591"><a name="p14226205212591"></a><a name="p14226205212591"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row13226652105920"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p62261052165911"><a name="p62261052165911"></a><a name="p62261052165911"></a>Underline</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p15226752105913"><a name="p15226752105913"></a><a name="p15226752105913"></a>Line under the text.</p>
</td>
</tr>
<tr id="row14226125235912"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p622715211592"><a name="p622715211592"></a><a name="p622715211592"></a>LineThrough</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p72271152145918"><a name="p72271152145918"></a><a name="p72271152145918"></a>Line through the text.</p>
</td>
</tr>
<tr id="row2022719524594"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p8227852115918"><a name="p8227852115918"></a><a name="p8227852115918"></a>Overline</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1622765218591"><a name="p1622765218591"></a><a name="p1622765218591"></a>Line over the text.</p>
</td>
</tr>
<tr id="row13227105213595"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p92275529599"><a name="p92275529599"></a><a name="p92275529599"></a>None</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p182271652165910"><a name="p182271652165910"></a><a name="p182271652165910"></a>No decorative lines.</p>
</td>
</tr>
</tbody>
</table>

## TextCase Enums<a name="section1276124151715"></a>

<a name="table201356431635"></a>
<table><thead align="left"><tr id="row1015713431938"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p915754315319"><a name="p915754315319"></a><a name="p915754315319"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p14157643635"><a name="p14157643635"></a><a name="p14157643635"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1915715431032"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p91571243233"><a name="p91571243233"></a><a name="p91571243233"></a>Normal</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1115764311315"><a name="p1115764311315"></a><a name="p1115764311315"></a>Normal case.</p>
</td>
</tr>
<tr id="row7157143932"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p181577436310"><a name="p181577436310"></a><a name="p181577436310"></a>LowerCase</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p21571643833"><a name="p21571643833"></a><a name="p21571643833"></a>All lowercase.</p>
</td>
</tr>
<tr id="row181578436316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1315764310311"><a name="p1315764310311"></a><a name="p1315764310311"></a>UpperCase</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p71570431138"><a name="p71570431138"></a><a name="p71570431138"></a>All uppercase.</p>
</td>
</tr>
</tbody>
</table>

## BarState Enums<a name="section122549529179"></a>

<a name="table925931117237"></a>
<table><thead align="left"><tr id="row2289101112319"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p14289191192310"><a name="p14289191192310"></a><a name="p14289191192310"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p2028913117238"><a name="p2028913117238"></a><a name="p2028913117238"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1528910119238"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p20289811122310"><a name="p20289811122310"></a><a name="p20289811122310"></a>Off</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p528915111237"><a name="p528915111237"></a><a name="p528915111237"></a>Hide.</p>
</td>
</tr>
<tr id="row15289141122319"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p132891211112313"><a name="p132891211112313"></a><a name="p132891211112313"></a>On</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p15290131119233"><a name="p15290131119233"></a><a name="p15290131119233"></a>Display.</p>
</td>
</tr>
<tr id="row529061122311"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p162901311132314"><a name="p162901311132314"></a><a name="p162901311132314"></a>Auto</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p2290911172311"><a name="p2290911172311"></a><a name="p2290911172311"></a>Display on demand (displays when the screen is touched and disappears after 2s).</p>
</td>
</tr>
</tbody>
</table>