Click or drag to resize
StyleIdentifier Enumeration
Locale independent style identifier.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public enum StyleIdentifier
Members
  Member nameValueDescription
BookTitle264
CommentReference39 The Annotation (Comment) Reference style.
DefaultParagraphFont65 The Default Paragraph Font style.
Emphasis88
EndnoteReference42 The Endnote Reference style.
FollowedHyperlink86
FootnoteReference38 The Footnote Reference style.
HtmlAcronym95
HtmlCite97
HtmlCode98
HtmlDefinition99
HtmlKeyboard100
HtmlSample102
HtmlTypewriter103
HtmlVariable104
Hyperlink85 The Hyperlink style.
IntenseEmphasis261
IntenseReference263
LineNumber40 The Line Number style.
PageNumber41 The Page Number style.
PlaceholderText156
Strong87
SubtleEmphasis260
SubtleReference262
BalloonText153
BodyText66 The Body Text style.
BodyText280
BodyText381
BodyText1I77
BodyText1I278
BodyTextInd67
BodyTextInd282
BodyTextInd383
Closing63
CommentSubject106
CommentText30 The Annotation (Comment) Text style.
Date76
DocumentMap89
EmailSignature91
EndnoteText43 The Endnote Text style.
Footer32 The Footer style.
FootnoteText29 The Footnote Text style.
Header31 The Header style.
Heading11 The Heading 1 style.
Heading22 The Heading 2 style.
Heading33 The Heading 3 style.
Heading44 The Heading 4 style.
Heading55 The Heading 5 style.
Heading66 The Heading 6 style.
Heading77 The Heading 7 style.
Heading88 The Heading 8 style.
Heading99 The Heading 9 style.
HtmlAddress96
HtmlTopOfForm92
HtmlBottomOfForm93
HtmlPreformatted101
IntenseQuote181
Macro45
MessageHeader73
NoteHeading79
PlainText90
Quote180
Salutation75
Signature64
Subtitle74
Title62 The Title style.
Bibliography265
BlockText84
Caption34
EnvelopeAddress36 The Envelope Address style.
EnvelopeReturn37 The Envelope Return style.
Index110
Index211
Index312
Index413
Index514
Index615
Index716
Index817
Index918
IndexHeading33 The Index Heading style.
List47 The List style.
List250
List351
List452
List553
ListBullet48 The List Bullet style.
ListBullet254
ListBullet355
ListBullet456
ListBullet557
ListContinue68
ListContinue269
ListContinue370
ListContinue471
ListContinue572
ListNumber49 The List Number style.
ListNumber258
ListNumber359
ListNumber460
ListNumber561
ListParagraph179
NoSpacing157
Normal0 The Normal style.
NormalWeb94
NormalIndent28 The Normal Indent style.
TableOfAuthorities44
TableOfFigures35 The Table of Figures style.
ToaHeading46
Toc119
Toc220
Toc321
Toc422
Toc523
Toc624
Toc725
Toc826
Toc927
TocHeading266
Revision178
OutlineList1108 The 1 / a / i style.
OutlineList2109 The 1 / 1.1 / 1.1.1 style.
OutlineList3110 The Article / Section style.
NoList107
ColorfulGrid171
ColorfulGridAccent1189
ColorfulGridAccent2203
ColorfulGridAccent3217
ColorfulGridAccent4231
ColorfulGridAccent5245
ColorfulGridAccent6259
ColorfulList170
ColorfulListAccent1188
ColorfulListAccent2202
ColorfulListAccent3216
ColorfulListAccent4230
ColorfulListAccent5244
ColorfulListAccent6258
ColorfulShading169
ColorfulShadingAccent1187
ColorfulShadingAccent2201
ColorfulShadingAccent3215
ColorfulShadingAccent4229
ColorfulShadingAccent5243
ColorfulShadingAccent6257
DarkList168
DarkListAccent1186
DarkListAccent2200
DarkListAccent3214
DarkListAccent4228
DarkListAccent5242
DarkListAccent6256
LightGrid160
LightGridAccent1174
LightGridAccent2192
LightGridAccent3206
LightGridAccent4220
LightGridAccent5234
LightGridAccent6248
LightList159
LightListAccent1173
LightListAccent2191
LightListAccent3205
LightListAccent4219
LightListAccent5233
LightListAccent6247
LightShading158
LightShadingAccent1172
LightShadingAccent2190
LightShadingAccent3204
LightShadingAccent4218
LightShadingAccent5232
LightShadingAccent6246
MediumGrid1165
MediumGrid1Accent1183
MediumGrid1Accent2197
MediumGrid1Accent3211
MediumGrid1Accent4225
MediumGrid1Accent5239
MediumGrid1Accent6253
MediumGrid2166
MediumGrid2Accent1184
MediumGrid2Accent2198
MediumGrid2Accent3212
MediumGrid2Accent4226
MediumGrid2Accent5240
MediumGrid2Accent6254
MediumGrid3167
MediumGrid3Accent1185
MediumGrid3Accent2199
MediumGrid3Accent3213
MediumGrid3Accent4227
MediumGrid3Accent5241
MediumGrid3Accent6255
MediumList1163
MediumList1Accent1177
MediumList1Accent2195
MediumList1Accent3209
MediumList1Accent4223
MediumList1Accent5237
MediumList1Accent6251
MediumList2164
MediumList2Accent1182
MediumList2Accent2196
MediumList2Accent3210
MediumList2Accent4224
MediumList2Accent5238
MediumList2Accent6252
MediumShading1161
MediumShading1Accent1175
MediumShading1Accent2193
MediumShading1Accent3207
MediumShading1Accent4221
MediumShading1Accent5235
MediumShading1Accent6249
MediumShading2162
MediumShading2Accent1176
MediumShading2Accent2194
MediumShading2Accent3208
MediumShading2Accent4222
MediumShading2Accent5236
MediumShading2Accent6250
Table3DEffects1142
Table3DEffects2143
Table3DEffects3144
TableClassic1114
TableClassic2115
TableClassic3116
TableClassic4117
TableColorful1118
TableColorful2119
TableColorful3120
TableColumns1121
TableColumns2122
TableColumns3123
TableColumns4124
TableColumns5125
TableContemporary145
TableElegant146
TableGrid154
TableGrid1126
TableGrid2127
TableGrid3128
TableGrid4129
TableGrid5130
TableGrid6131
TableGrid7132
TableGrid8133
TableList1134
TableList2135
TableList3136
TableList4137
TableList5138
TableList6139
TableList7140
TableList8141
TableNormal105
TableProfessional147
TableSimple1111
TableSimple2112
TableSimple3113
TableSubtle1148
TableSubtle2149
TableTheme155
TableWeb1150
TableWeb2151
TableWeb3152
PlainTable1267 Plain Table 1
PlainTable2268 Plain Table 2
PlainTable3269 Plain Table 3
PlainTable4270 Plain Table 4
PlainTable5271 Plain Table 5
TableGridLight272 Table Grid Light
GridTable1Light273 Grid Table 1 Light
GridTable2274 Grid Table 2
GridTable3275 Grid Table 3
GridTable4276 Grid Table 4
GridTable5Dark277 Grid Table 5 Dark
GridTable6Colorful278 Grid Table 6 Colorful
GridTable7Colorful279 Grid Table 7 Colorful
GridTable1LightAccent1280 Grid Table 1 Light - Accent 1
GridTable2Accent1281 Grid Table 2 - Accent 1
GridTable3Accent1282 Grid Table 3 - Accent 1
GridTable4Accent1283 Grid Table 4 - Accent 1
GridTable5DarkAccent1284 Grid Table 5 Dark - Accent 1
GridTable6ColorfulAccent1285 Grid Table 6 Colorful - Accent 1
GridTable7ColorfulAccent1286 Grid Table 7 Colorful - Accent 1
GridTable1LightAccent2287 Grid Table 1 Light - Accent 2
GridTable2Accent2288 Grid Table 2 - Accent 2
GridTable3Accent2289 Grid Table 3 - Accent 2
GridTable4Accent2290 Grid Table 4 - Accent 2
GridTable5DarkAccent2291 Grid Table 5 Dark - Accent 2
GridTable6ColorfulAccent2292 Grid Table 6 Colorful - Accent 2
GridTable7ColorfulAccent2293 Grid Table 7 Colorful - Accent 2
GridTable1LightAccent3294 Grid Table 1 Light - Accent 3
GridTable2Accent3295 Grid Table 2 - Accent 3
GridTable3Accent3296 Grid Table 3 - Accent 3
GridTable4Accent3297 Grid Table 4 - Accent 3
GridTable5DarkAccent3298 Grid Table 5 Dark - Accent 3
GridTable6ColorfulAccent3299 Grid Table 6 Colorful - Accent 3
GridTable7ColorfulAccent3300 Grid Table 7 Colorful - Accent 3
GridTable1LightAccent4301 Grid Table 1 Light - Accent 4
GridTable2Accent4302 Grid Table 2 - Accent 4
GridTable3Accent4303 Grid Table 3 - Accent 4
GridTable4Accent4304 Grid Table 4 - Accent 4
GridTable5DarkAccent4305 Grid Table 5 Dark - Accent 4
GridTable6ColorfulAccent4306 Grid Table 6 Colorful - Accent 4
GridTable7ColorfulAccent4307 Grid Table 7 Colorful - Accent 4
GridTable1LightAccent5308 Grid Table 1 Light - Accent 5
GridTable2Accent5309 Grid Table 2 - Accent 5
GridTable3Accent5310 Grid Table 3 - Accent 5
GridTable4Accent5311 Grid Table 4 - Accent 5
GridTable5DarkAccent5312 Grid Table 5 Dark - Accent 5
GridTable6ColorfulAccent5313 Grid Table 6 Colorful - Accent 5
GridTable7ColorfulAccent5314 Grid Table 7 Colorful - Accent 5
GridTable1LightAccent6315 Grid Table 1 Light - Accent 6
GridTable2Accent6316 Grid Table 2 - Accent 6
GridTable3Accent6317 Grid Table 3 - Accent 6
GridTable4Accent6318 Grid Table 4 - Accent 6
GridTable5DarkAccent6319 Grid Table 5 Dark - Accent 6
GridTable6ColorfulAccent6320 Grid Table 6 Colorful - Accent 6
GridTable7ColorfulAccent6321 Grid Table 7 Colorful - Accent 6
ListTable1Light322 List Table 1 Light
ListTable2323 List Table 2
ListTable3324 List Table 3
ListTable4325 List Table 4
ListTable5Dark326 List Table 5 Dark
ListTable6Colorful327 List Table 6 Colorful
ListTable7Colorful328 List Table 7 Colorful
ListTable1LightAccent1329 List Table 1 Light - Accent 1
ListTable2Accent1330 List Table 2 - Accent 1
ListTable3Accent1331 List Table 3 - Accent 1
ListTable4Accent1332 List Table 4 - Accent 1
ListTable5DarkAccent1333 List Table 5 Dark - Accent 1
ListTable6ColorfulAccent1334 List Table 6 Colorful - Accent 1
ListTable7ColorfulAccent1335 List Table 7 Colorful - Accent 1
ListTable1LightAccent2336 List Table 1 Light - Accent 2
ListTable2Accent2337 List Table 2 - Accent 2
ListTable3Accent2338 List Table 3 - Accent 2
ListTable4Accent2339 List Table 4 - Accent 2
ListTable5DarkAccent2340 List Table 5 Dark - Accent 2
ListTable6ColorfulAccent2341 List Table 6 Colorful - Accent 2
ListTable7ColorfulAccent2342 List Table 7 Colorful - Accent 2
ListTable1LightAccent3343 List Table 1 Light - Accent 3
ListTable2Accent3344 List Table 2 - Accent 3
ListTable3Accent3345 List Table 3 - Accent 3
ListTable4Accent3346 List Table 4 - Accent 3
ListTable5DarkAccent3347 List Table 5 Dark - Accent 3
ListTable6ColorfulAccent3348 List Table 6 Colorful - Accent 3
ListTable7ColorfulAccent3349 List Table 7 Colorful - Accent 3
ListTable1LightAccent4350 List Table 1 Light - Accent 4
ListTable2Accent4351 List Table 2 - Accent 4
ListTable3Accent4352 List Table 3 - Accent 4
ListTable4Accent4353 List Table 4 - Accent 4
ListTable5DarkAccent4354 List Table 5 Dark - Accent 4
ListTable6ColorfulAccent4355 List Table 6 Colorful - Accent 4
ListTable7ColorfulAccent4356 List Table 7 Colorful - Accent 4
ListTable1LightAccent5357 List Table 1 Light - Accent 5
ListTable2Accent5358 List Table 2 - Accent 5
ListTable3Accent5359 List Table 3 - Accent 5
ListTable4Accent5360 List Table 4 - Accent 5
ListTable5DarkAccent5361 List Table 5 Dark - Accent 5
ListTable6ColorfulAccent5362 List Table 6 Colorful - Accent 5
ListTable7ColorfulAccent5363 List Table 7 Colorful - Accent 5
ListTable1LightAccent6364 List Table 1 Light - Accent 6
ListTable2Accent6365 List Table 2 - Accent 6
ListTable3Accent6366 List Table 3 - Accent 6
ListTable4Accent6367 List Table 4 - Accent 6
ListTable5DarkAccent6368 List Table 5 Dark - Accent 6
ListTable6ColorfulAccent6369 List Table 6 Colorful - Accent 6
ListTable7ColorfulAccent6370 List Table 7 Colorful - Accent 6
User4094 A user defined style.
Nil4095 Reserved for internal use.
Remarks

The names of built-in styles in MS Word are localized for different languages. Using a style identifier you can find the correct style regardless of the document language.

All user defined styles are assigned the StyleIdentifier.User value.

Examples
Shows how to use style identifier to find text formatted with a specific character style and apply different character style.
[C#]

Document doc = new Document(MyDir + "Font.StyleIdentifier.doc");

// Select all run nodes in the document.
NodeCollection runs = doc.GetChildNodes(NodeType.Run, true);

// Loop through every run node.
foreach (Run run in runs.OfType<Run>())
{
    // If the character style of the run is what we want, do what we need. Change the style in this case.
    // Note that using StyleIdentifier we can identify a built-in style regardless 
    // of the language of Microsoft Word used to create the document.
    if (run.Font.StyleIdentifier.Equals(StyleIdentifier.Emphasis))
        run.Font.StyleIdentifier = StyleIdentifier.Strong;
}

doc.Save(ArtifactsDir + "Font.StyleIdentifier.doc");
See Also