StyleIdentifier
Contenuti
[
Nascondere
]StyleIdentifier enumeration
Identificatore di stile indipendente dalla lingua locale.
public enum StyleIdentifier
I valori
| Nome | Valore | Descrizione |
|---|---|---|
| BookTitle | 264 | |
| CommentReference | 39 | Stile di riferimento per l’annotazione (commento). |
| DefaultParagraphFont | 65 | Lo stile predefinito del carattere paragrafo. |
| Emphasis | 88 | |
| EndnoteReference | 42 | Lo stile di riferimento delle note di chiusura. |
| FollowedHyperlink | 86 | |
| FootnoteReference | 38 | Stile di riferimento delle note a piè di pagina. |
| HtmlAcronym | 95 | |
| HtmlCite | 97 | |
| HtmlCode | 98 | |
| HtmlDefinition | 99 | |
| HtmlKeyboard | 100 | |
| HtmlSample | 102 | |
| HtmlTypewriter | 103 | |
| HtmlVariable | 104 | |
| Hyperlink | 85 | Lo stile del collegamento ipertestuale. |
| IntenseEmphasis | 261 | |
| IntenseReference | 263 | |
| LineNumber | 40 | Stile del numero di riga. |
| PageNumber | 41 | Lo stile del numero di pagina. |
| PlaceholderText | 156 | |
| SmartLink | 371 | Lo stile Smart Link. |
| Strong | 87 | |
| SubtleEmphasis | 260 | |
| SubtleReference | 262 | |
| BalloonText | 153 | |
| BodyText | 66 | Lo stile del corpo del testo. |
| BodyText2 | 80 | |
| BodyText3 | 81 | |
| BodyText1I | 77 | |
| BodyText1I2 | 78 | |
| BodyTextInd | 67 | |
| BodyTextInd2 | 82 | |
| BodyTextInd3 | 83 | |
| Closing | 63 | |
| CommentSubject | 106 | |
| CommentText | 30 | Stile del testo Annotazione (Commento). |
| Date | 76 | |
| DocumentMap | 89 | |
| EmailSignature | 91 | |
| EndnoteText | 43 | Lo stile del testo della nota di chiusura. |
| Footer | 32 | Lo stile del piè di pagina. |
| FootnoteText | 29 | Stile del testo della nota a piè di pagina. |
| Header | 31 | Lo stile dell’intestazione. |
| Heading1 | 1 | Lo stile Titolo 1. |
| Heading2 | 2 | Stile Titolo 2. |
| Heading3 | 3 | Lo stile Titolo 3. |
| Heading4 | 4 | Lo stile Titolo 4. |
| Heading5 | 5 | Lo stile Titolo 5. |
| Heading6 | 6 | Lo stile Titolo 6. |
| Heading7 | 7 | Lo stile Titolo 7. |
| Heading8 | 8 | Lo stile Titolo 8. |
| Heading9 | 9 | Lo stile Titolo 9. |
| HtmlAddress | 96 | |
| HtmlTopOfForm | 92 | |
| HtmlBottomOfForm | 93 | |
| HtmlPreformatted | 101 | |
| IntenseQuote | 181 | |
| Macro | 45 | |
| MessageHeader | 73 | |
| NoteHeading | 79 | |
| PlainText | 90 | |
| Quote | 180 | |
| Salutation | 75 | |
| Signature | 64 | |
| Subtitle | 74 | |
| Title | 62 | Lo stile del titolo. |
| Bibliography | 265 | |
| BlockText | 84 | |
| Caption | 34 | |
| EnvelopeAddress | 36 | Stile dell’indirizzo della busta. |
| EnvelopeReturn | 37 | Stile di ritorno della busta. |
| Index1 | 10 | |
| Index2 | 11 | |
| Index3 | 12 | |
| Index4 | 13 | |
| Index5 | 14 | |
| Index6 | 15 | |
| Index7 | 16 | |
| Index8 | 17 | |
| Index9 | 18 | |
| IndexHeading | 33 | Stile del titolo dell’indice. |
| List | 47 | Lo stile Elenco. |
| List2 | 50 | |
| List3 | 51 | |
| List4 | 52 | |
| List5 | 53 | |
| ListBullet | 48 | Stile elenco puntato. |
| ListBullet2 | 54 | |
| ListBullet3 | 55 | |
| ListBullet4 | 56 | |
| ListBullet5 | 57 | |
| ListContinue | 68 | |
| ListContinue2 | 69 | |
| ListContinue3 | 70 | |
| ListContinue4 | 71 | |
| ListContinue5 | 72 | |
| ListNumber | 49 | Stile Numero Elenco. |
| ListNumber2 | 58 | |
| ListNumber3 | 59 | |
| ListNumber4 | 60 | |
| ListNumber5 | 61 | |
| ListParagraph | 179 | |
| NoSpacing | 157 | |
| Normal | 0 | Lo stile Normale. |
| NormalWeb | 94 | |
| NormalIndent | 28 | Lo stile di rientro normale. |
| TableOfAuthorities | 44 | |
| TableOfFigures | 35 | Stile Tabella delle Figure. |
| ToaHeading | 46 | |
| Toc1 | 19 | |
| Toc2 | 20 | |
| Toc3 | 21 | |
| Toc4 | 22 | |
| Toc5 | 23 | |
| Toc6 | 24 | |
| Toc7 | 25 | |
| Toc8 | 26 | |
| Toc9 | 27 | |
| TocHeading | 266 | |
| Revision | 178 | |
| OutlineList1 | 108 | Lo stile 1/a/i. |
| OutlineList2 | 109 | Lo stile 1 / 1.1 / 1.1.1. |
| OutlineList3 | 110 | Lo stile Articolo/Sezione. |
| NoList | 107 | |
| ColorfulGrid | 171 | |
| ColorfulGridAccent1 | 189 | |
| ColorfulGridAccent2 | 203 | |
| ColorfulGridAccent3 | 217 | |
| ColorfulGridAccent4 | 231 | |
| ColorfulGridAccent5 | 245 | |
| ColorfulGridAccent6 | 259 | |
| ColorfulList | 170 | |
| ColorfulListAccent1 | 188 | |
| ColorfulListAccent2 | 202 | |
| ColorfulListAccent3 | 216 | |
| ColorfulListAccent4 | 230 | |
| ColorfulListAccent5 | 244 | |
| ColorfulListAccent6 | 258 | |
| ColorfulShading | 169 | |
| ColorfulShadingAccent1 | 187 | |
| ColorfulShadingAccent2 | 201 | |
| ColorfulShadingAccent3 | 215 | |
| ColorfulShadingAccent4 | 229 | |
| ColorfulShadingAccent5 | 243 | |
| ColorfulShadingAccent6 | 257 | |
| DarkList | 168 | |
| DarkListAccent1 | 186 | |
| DarkListAccent2 | 200 | |
| DarkListAccent3 | 214 | |
| DarkListAccent4 | 228 | |
| DarkListAccent5 | 242 | |
| DarkListAccent6 | 256 | |
| LightGrid | 160 | |
| LightGridAccent1 | 174 | |
| LightGridAccent2 | 192 | |
| LightGridAccent3 | 206 | |
| LightGridAccent4 | 220 | |
| LightGridAccent5 | 234 | |
| LightGridAccent6 | 248 | |
| LightList | 159 | |
| LightListAccent1 | 173 | |
| LightListAccent2 | 191 | |
| LightListAccent3 | 205 | |
| LightListAccent4 | 219 | |
| LightListAccent5 | 233 | |
| LightListAccent6 | 247 | |
| LightShading | 158 | |
| LightShadingAccent1 | 172 | |
| LightShadingAccent2 | 190 | |
| LightShadingAccent3 | 204 | |
| LightShadingAccent4 | 218 | |
| LightShadingAccent5 | 232 | |
| LightShadingAccent6 | 246 | |
| MediumGrid1 | 165 | |
| MediumGrid1Accent1 | 183 | |
| MediumGrid1Accent2 | 197 | |
| MediumGrid1Accent3 | 211 | |
| MediumGrid1Accent4 | 225 | |
| MediumGrid1Accent5 | 239 | |
| MediumGrid1Accent6 | 253 | |
| MediumGrid2 | 166 | |
| MediumGrid2Accent1 | 184 | |
| MediumGrid2Accent2 | 198 | |
| MediumGrid2Accent3 | 212 | |
| MediumGrid2Accent4 | 226 | |
| MediumGrid2Accent5 | 240 | |
| MediumGrid2Accent6 | 254 | |
| MediumGrid3 | 167 | |
| MediumGrid3Accent1 | 185 | |
| MediumGrid3Accent2 | 199 | |
| MediumGrid3Accent3 | 213 | |
| MediumGrid3Accent4 | 227 | |
| MediumGrid3Accent5 | 241 | |
| MediumGrid3Accent6 | 255 | |
| MediumList1 | 163 | |
| MediumList1Accent1 | 177 | |
| MediumList1Accent2 | 195 | |
| MediumList1Accent3 | 209 | |
| MediumList1Accent4 | 223 | |
| MediumList1Accent5 | 237 | |
| MediumList1Accent6 | 251 | |
| MediumList2 | 164 | |
| MediumList2Accent1 | 182 | |
| MediumList2Accent2 | 196 | |
| MediumList2Accent3 | 210 | |
| MediumList2Accent4 | 224 | |
| MediumList2Accent5 | 238 | |
| MediumList2Accent6 | 252 | |
| MediumShading1 | 161 | |
| MediumShading1Accent1 | 175 | |
| MediumShading1Accent2 | 193 | |
| MediumShading1Accent3 | 207 | |
| MediumShading1Accent4 | 221 | |
| MediumShading1Accent5 | 235 | |
| MediumShading1Accent6 | 249 | |
| MediumShading2 | 162 | |
| MediumShading2Accent1 | 176 | |
| MediumShading2Accent2 | 194 | |
| MediumShading2Accent3 | 208 | |
| MediumShading2Accent4 | 222 | |
| MediumShading2Accent5 | 236 | |
| MediumShading2Accent6 | 250 | |
| Table3DEffects1 | 142 | |
| Table3DEffects2 | 143 | |
| Table3DEffects3 | 144 | |
| TableClassic1 | 114 | |
| TableClassic2 | 115 | |
| TableClassic3 | 116 | |
| TableClassic4 | 117 | |
| TableColorful1 | 118 | |
| TableColorful2 | 119 | |
| TableColorful3 | 120 | |
| TableColumns1 | 121 | |
| TableColumns2 | 122 | |
| TableColumns3 | 123 | |
| TableColumns4 | 124 | |
| TableColumns5 | 125 | |
| TableContemporary | 145 | |
| TableElegant | 146 | |
| TableGrid | 154 | |
| TableGrid1 | 126 | |
| TableGrid2 | 127 | |
| TableGrid3 | 128 | |
| TableGrid4 | 129 | |
| TableGrid5 | 130 | |
| TableGrid6 | 131 | |
| TableGrid7 | 132 | |
| TableGrid8 | 133 | |
| TableList1 | 134 | |
| TableList2 | 135 | |
| TableList3 | 136 | |
| TableList4 | 137 | |
| TableList5 | 138 | |
| TableList6 | 139 | |
| TableList7 | 140 | |
| TableList8 | 141 | |
| TableNormal | 105 | |
| TableProfessional | 147 | |
| TableSimple1 | 111 | |
| TableSimple2 | 112 | |
| TableSimple3 | 113 | |
| TableSubtle1 | 148 | |
| TableSubtle2 | 149 | |
| TableTheme | 155 | |
| TableWeb1 | 150 | |
| TableWeb2 | 151 | |
| TableWeb3 | 152 | |
| PlainTable1 | 267 | Tabella semplice 1 |
| PlainTable2 | 268 | Tabella semplice 2 |
| PlainTable3 | 269 | Tabella semplice 3 |
| PlainTable4 | 270 | Tabella semplice 4 |
| PlainTable5 | 271 | Tabella semplice 5 |
| TableGridLight | 272 | Griglia luminosa da tavolo |
| GridTable1Light | 273 | Griglia Tabella 1 Luce |
| GridTable2 | 274 | Griglia Tabella 2 |
| GridTable3 | 275 | Griglia Tabella 3 |
| GridTable4 | 276 | Griglia Tabella 4 |
| GridTable5Dark | 277 | Griglia Tabella 5 Scuro |
| GridTable6Colorful | 278 | Griglia Tabella 6 Colorato |
| GridTable7Colorful | 279 | Griglia Tabella 7 Colorata |
| GridTable1LightAccent1 | 280 | Griglia Tabella 1 Luce - Accento 1 |
| GridTable2Accent1 | 281 | Tabella griglia 2 - Accento 1 |
| GridTable3Accent1 | 282 | Tabella griglia 3 - Accento 1 |
| GridTable4Accent1 | 283 | Tabella griglia 4 - Accento 1 |
| GridTable5DarkAccent1 | 284 | Griglia Tabella 5 Scuro - Accento 1 |
| GridTable6ColorfulAccent1 | 285 | Griglia Tabella 6 Colorata - Accento 1 |
| GridTable7ColorfulAccent1 | 286 | Griglia Tabella 7 Colorata - Accento 1 |
| GridTable1LightAccent2 | 287 | Griglia Tabella 1 Luce - Accento 2 |
| GridTable2Accent2 | 288 | Tabella griglia 2 - Accento 2 |
| GridTable3Accent2 | 289 | Tabella griglia 3 - Accento 2 |
| GridTable4Accent2 | 290 | Tabella griglia 4 - Accento 2 |
| GridTable5DarkAccent2 | 291 | Griglia Tabella 5 Scuro - Accento 2 |
| GridTable6ColorfulAccent2 | 292 | Griglia Tabella 6 Colorata - Accento 2 |
| GridTable7ColorfulAccent2 | 293 | Griglia Tabella 7 Colorata - Accento 2 |
| GridTable1LightAccent3 | 294 | Griglia Tabella 1 Luce - Accento 3 |
| GridTable2Accent3 | 295 | Tabella griglia 2 - Accento 3 |
| GridTable3Accent3 | 296 | Tabella griglia 3 - Accento 3 |
| GridTable4Accent3 | 297 | Tabella griglia 4 - Accento 3 |
| GridTable5DarkAccent3 | 298 | Griglia Tabella 5 Scuro - Accento 3 |
| GridTable6ColorfulAccent3 | 299 | Griglia Tabella 6 Colorata - Accento 3 |
| GridTable7ColorfulAccent3 | 300 | Griglia Tabella 7 Colorata - Accento 3 |
| GridTable1LightAccent4 | 301 | Griglia Tabella 1 Luce - Accento 4 |
| GridTable2Accent4 | 302 | Tabella griglia 2 - Accento 4 |
| GridTable3Accent4 | 303 | Tabella griglia 3 - Accento 4 |
| GridTable4Accent4 | 304 | Tabella griglia 4 - Accento 4 |
| GridTable5DarkAccent4 | 305 | Griglia Tabella 5 Scuro - Accento 4 |
| GridTable6ColorfulAccent4 | 306 | Griglia Tabella 6 Colorata - Accento 4 |
| GridTable7ColorfulAccent4 | 307 | Griglia Tabella 7 Colorata - Accento 4 |
| GridTable1LightAccent5 | 308 | Griglia Tabella 1 Luce - Accento 5 |
| GridTable2Accent5 | 309 | Tabella griglia 2 - Accento 5 |
| GridTable3Accent5 | 310 | Tabella griglia 3 - Accento 5 |
| GridTable4Accent5 | 311 | Tabella griglia 4 - Accento 5 |
| GridTable5DarkAccent5 | 312 | Griglia Tabella 5 Scuro - Accent 5 |
| GridTable6ColorfulAccent5 | 313 | Griglia Tabella 6 Colorata - Accento 5 |
| GridTable7ColorfulAccent5 | 314 | Griglia Tabella 7 Colorata - Accento 5 |
| GridTable1LightAccent6 | 315 | Griglia Tabella 1 Luce - Accento 6 |
| GridTable2Accent6 | 316 | Tabella griglia 2 - Accento 6 |
| GridTable3Accent6 | 317 | Tabella griglia 3 - Accento 6 |
| GridTable4Accent6 | 318 | Tabella griglia 4 - Accento 6 |
| GridTable5DarkAccent6 | 319 | Griglia Tabella 5 Scuro - Accento 6 |
| GridTable6ColorfulAccent6 | 320 | Griglia Tabella 6 Colorata - Accento 6 |
| GridTable7ColorfulAccent6 | 321 | Griglia Tabella 7 Colorata - Accento 6 |
| ListTable1Light | 322 | Elenco Tabella 1 Luce |
| ListTable2 | 323 | Elenco Tabella 2 |
| ListTable3 | 324 | Elenco Tabella 3 |
| ListTable4 | 325 | Elenco Tabella 4 |
| ListTable5Dark | 326 | Elenco Tabella 5 Dark |
| ListTable6Colorful | 327 | Elenco Tabella 6 Colorato |
| ListTable7Colorful | 328 | Elenco Tabella 7 Colorato |
| ListTable1LightAccent1 | 329 | Tabella elenco 1 Luce - Accento 1 |
| ListTable2Accent1 | 330 | Tabella elenco 2 - Accento 1 |
| ListTable3Accent1 | 331 | Tabella elenco 3 - Accento 1 |
| ListTable4Accent1 | 332 | Tabella elenco 4 - Accento 1 |
| ListTable5DarkAccent1 | 333 | Elenco Tabella 5 Scuro - Accento 1 |
| ListTable6ColorfulAccent1 | 334 | Elenco Tabella 6 Colorato - Accento 1 |
| ListTable7ColorfulAccent1 | 335 | Elenco Tabella 7 Colorato - Accento 1 |
| ListTable1LightAccent2 | 336 | Tabella elenco 1 Luce - Accento 2 |
| ListTable2Accent2 | 337 | Tabella degli elenchi 2 - Accento 2 |
| ListTable3Accent2 | 338 | Tabella elenco 3 - Accento 2 |
| ListTable4Accent2 | 339 | Tabella elenco 4 - Accento 2 |
| ListTable5DarkAccent2 | 340 | Elenco Tabella 5 Scuro - Accento 2 |
| ListTable6ColorfulAccent2 | 341 | Elenco Tabella 6 Colorato - Accento 2 |
| ListTable7ColorfulAccent2 | 342 | Elenco Tabella 7 Colorato - Accento 2 |
| ListTable1LightAccent3 | 343 | Tabella elenco 1 Luce - Accento 3 |
| ListTable2Accent3 | 344 | Tabella degli elenchi 2 - Accento 3 |
| ListTable3Accent3 | 345 | Tabella degli elenchi 3 - Accento 3 |
| ListTable4Accent3 | 346 | Tabella elenco 4 - Accento 3 |
| ListTable5DarkAccent3 | 347 | Elenco Tabella 5 Scuro - Accento 3 |
| ListTable6ColorfulAccent3 | 348 | Elenco Tabella 6 Colorato - Accento 3 |
| ListTable7ColorfulAccent3 | 349 | Elenco Tabella 7 Colorato - Accento 3 |
| ListTable1LightAccent4 | 350 | Tabella elenco 1 Luce - Accento 4 |
| ListTable2Accent4 | 351 | Tabella degli elenchi 2 - Accento 4 |
| ListTable3Accent4 | 352 | Tabella elenco 3 - Accento 4 |
| ListTable4Accent4 | 353 | Tabella degli elenchi 4 - Accento 4 |
| ListTable5DarkAccent4 | 354 | Elenco Tabella 5 Scuro - Accento 4 |
| ListTable6ColorfulAccent4 | 355 | Elenco Tabella 6 Colorato - Accento 4 |
| ListTable7ColorfulAccent4 | 356 | Elenco Tabella 7 Colorato - Accento 4 |
| ListTable1LightAccent5 | 357 | Tabella elenco 1 Luce - Accento 5 |
| ListTable2Accent5 | 358 | Tabella degli elenchi 2 - Accento 5 |
| ListTable3Accent5 | 359 | Tabella elenco 3 - Accento 5 |
| ListTable4Accent5 | 360 | Tabella elenco 4 - Accento 5 |
| ListTable5DarkAccent5 | 361 | Elenco Tabella 5 Scuro - Accento 5 |
| ListTable6ColorfulAccent5 | 362 | Elenco Tabella 6 Colorato - Accento 5 |
| ListTable7ColorfulAccent5 | 363 | Elenco Tabella 7 Colorato - Accento 5 |
| ListTable1LightAccent6 | 364 | Tabella elenco 1 Luce - Accento 6 |
| ListTable2Accent6 | 365 | Tabella degli elenchi 2 - Accento 6 |
| ListTable3Accent6 | 366 | Tabella elenco 3 - Accento 6 |
| ListTable4Accent6 | 367 | Tabella elenco 4 - Accento 6 |
| ListTable5DarkAccent6 | 368 | Elenco Tabella 5 Scuro - Accento 6 |
| ListTable6ColorfulAccent6 | 369 | Elenco Tabella 6 Colorato - Accento 6 |
| ListTable7ColorfulAccent6 | 370 | Elenco Tabella 7 Colorato - Accento 6 |
| Mention | 372 | Lo stile Menzione. |
| SmartHyperlink | 373 | Lo stile SmartHyperlink. |
| Hashtag | 374 | Lo stile Hashtag. |
| UnresolvedMention | 375 | Stile Menzione non risolta. |
| User | 4094 | Uno stile definito dall’utente. |
| Nil | 12287 | Riservato per uso interno. |
Osservazioni
I nomi degli stili incorporati in MS Word sono localizzati per diverse lingue. Utilizzando un identificatore di stile è possibile trovare lo stile corretto indipendentemente dalla lingua del documento.
A tutti gli stili definiti dall’utente viene assegnato ilUser valore.
Esempi
Mostra come modificare lo stile del testo esistente.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Di seguito sono riportati due modi per fare riferimento agli stili.
// 1 - Utilizzando il nome dello stile:
builder.Font.StyleName = "Emphasis";
builder.Writeln("Text originally in \"Emphasis\" style");
// 2 - Utilizzo di un identificatore di stile incorporato:
builder.Font.StyleIdentifier = StyleIdentifier.IntenseEmphasis;
builder.Writeln("Text originally in \"Intense Emphasis\" style");
// Converti tutti gli usi di uno stile in un altro,
// utilizzando i metodi sopra indicati per fare riferimento a stili vecchi e nuovi.
foreach (Run run in doc.GetChildNodes(NodeType.Run, true))
{
if (run.Font.StyleName == "Emphasis")
run.Font.StyleName = "Strong";
if (run.Font.StyleIdentifier == StyleIdentifier.IntenseEmphasis)
run.Font.StyleIdentifier = StyleIdentifier.Strong;
}
doc.Save(ArtifactsDir + "Font.ChangeStyle.docx");
Guarda anche
- spazio dei nomi Aspose.Words
- assemblea Aspose.Words