StyleIdentifier enumeration
StyleIdentifier enumeration
Locale independent style identifier.
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.
Members
Name | Description |
---|---|
BookTitle | |
CommentReference | The Annotation (Comment) Reference style. |
DefaultParagraphFont | The Default Paragraph Font style. |
Emphasis | |
EndnoteReference | The Endnote Reference style. |
FollowedHyperlink | |
FootnoteReference | The Footnote Reference style. |
HtmlAcronym | |
HtmlCite | |
HtmlCode | |
HtmlDefinition | |
HtmlKeyboard | |
HtmlSample | |
HtmlTypewriter | |
HtmlVariable | |
Hyperlink | The Hyperlink style. |
IntenseEmphasis | |
IntenseReference | |
LineNumber | The Line Number style. |
PageNumber | The Page Number style. |
PlaceholderText | |
SmartLink | The Smart Link style. |
Strong | |
SubtleEmphasis | |
SubtleReference | |
BalloonText | |
BodyText | The Body Text style. |
BodyText2 | |
BodyText3 | |
BodyText1I | |
BodyText1I2 | |
BodyTextInd | |
BodyTextInd2 | |
BodyTextInd3 | |
Closing | |
CommentSubject | |
CommentText | The Annotation (Comment) Text style. |
Date | |
DocumentMap | |
EmailSignature | |
EndnoteText | The Endnote Text style. |
Footer | The Footer style. |
FootnoteText | The Footnote Text style. |
Header | The Header style. |
Heading1 | The Heading 1 style. |
Heading2 | The Heading 2 style. |
Heading3 | The Heading 3 style. |
Heading4 | The Heading 4 style. |
Heading5 | The Heading 5 style. |
Heading6 | The Heading 6 style. |
Heading7 | The Heading 7 style. |
Heading8 | The Heading 8 style. |
Heading9 | The Heading 9 style. |
HtmlAddress | |
HtmlTopOfForm | |
HtmlBottomOfForm | |
HtmlPreformatted | |
IntenseQuote | |
Macro | |
MessageHeader | |
NoteHeading | |
PlainText | |
Quote | |
Salutation | |
Signature | |
Subtitle | |
Title | The Title style. |
Bibliography | |
BlockText | |
Caption | |
EnvelopeAddress | The Envelope Address style. |
EnvelopeReturn | The Envelope Return style. |
Index1 | |
Index2 | |
Index3 | |
Index4 | |
Index5 | |
Index6 | |
Index7 | |
Index8 | |
Index9 | |
IndexHeading | The Index Heading style. |
List | The List style. |
List2 | |
List3 | |
List4 | |
List5 | |
ListBullet | The List Bullet style. |
ListBullet2 | |
ListBullet3 | |
ListBullet4 | |
ListBullet5 | |
ListContinue | |
ListContinue2 | |
ListContinue3 | |
ListContinue4 | |
ListContinue5 | |
ListNumber | The List Number style. |
ListNumber2 | |
ListNumber3 | |
ListNumber4 | |
ListNumber5 | |
ListParagraph | |
NoSpacing | |
Normal | The Normal style. |
NormalWeb | |
NormalIndent | The Normal Indent style. |
TableOfAuthorities | |
TableOfFigures | The Table of Figures style. |
ToaHeading | |
Toc1 | |
Toc2 | |
Toc3 | |
Toc4 | |
Toc5 | |
Toc6 | |
Toc7 | |
Toc8 | |
Toc9 | |
TocHeading | |
Revision | |
OutlineList1 | The 1 / a / i style. |
OutlineList2 | The 1 / 1.1 / 1.1.1 style. |
OutlineList3 | The Article / Section style. |
NoList | |
ColorfulGrid | |
ColorfulGridAccent1 | |
ColorfulGridAccent2 | |
ColorfulGridAccent3 | |
ColorfulGridAccent4 | |
ColorfulGridAccent5 | |
ColorfulGridAccent6 | |
ColorfulList | |
ColorfulListAccent1 | |
ColorfulListAccent2 | |
ColorfulListAccent3 | |
ColorfulListAccent4 | |
ColorfulListAccent5 | |
ColorfulListAccent6 | |
ColorfulShading | |
ColorfulShadingAccent1 | |
ColorfulShadingAccent2 | |
ColorfulShadingAccent3 | |
ColorfulShadingAccent4 | |
ColorfulShadingAccent5 | |
ColorfulShadingAccent6 | |
DarkList | |
DarkListAccent1 | |
DarkListAccent2 | |
DarkListAccent3 | |
DarkListAccent4 | |
DarkListAccent5 | |
DarkListAccent6 | |
LightGrid | |
LightGridAccent1 | |
LightGridAccent2 | |
LightGridAccent3 | |
LightGridAccent4 | |
LightGridAccent5 | |
LightGridAccent6 | |
LightList | |
LightListAccent1 | |
LightListAccent2 | |
LightListAccent3 | |
LightListAccent4 | |
LightListAccent5 | |
LightListAccent6 | |
LightShading | |
LightShadingAccent1 | |
LightShadingAccent2 | |
LightShadingAccent3 | |
LightShadingAccent4 | |
LightShadingAccent5 | |
LightShadingAccent6 | |
MediumGrid1 | |
MediumGrid1Accent1 | |
MediumGrid1Accent2 | |
MediumGrid1Accent3 | |
MediumGrid1Accent4 | |
MediumGrid1Accent5 | |
MediumGrid1Accent6 | |
MediumGrid2 | |
MediumGrid2Accent1 | |
MediumGrid2Accent2 | |
MediumGrid2Accent3 | |
MediumGrid2Accent4 | |
MediumGrid2Accent5 | |
MediumGrid2Accent6 | |
MediumGrid3 | |
MediumGrid3Accent1 | |
MediumGrid3Accent2 | |
MediumGrid3Accent3 | |
MediumGrid3Accent4 | |
MediumGrid3Accent5 | |
MediumGrid3Accent6 | |
MediumList1 | |
MediumList1Accent1 | |
MediumList1Accent2 | |
MediumList1Accent3 | |
MediumList1Accent4 | |
MediumList1Accent5 | |
MediumList1Accent6 | |
MediumList2 | |
MediumList2Accent1 | |
MediumList2Accent2 | |
MediumList2Accent3 | |
MediumList2Accent4 | |
MediumList2Accent5 | |
MediumList2Accent6 | |
MediumShading1 | |
MediumShading1Accent1 | |
MediumShading1Accent2 | |
MediumShading1Accent3 | |
MediumShading1Accent4 | |
MediumShading1Accent5 | |
MediumShading1Accent6 | |
MediumShading2 | |
MediumShading2Accent1 | |
MediumShading2Accent2 | |
MediumShading2Accent3 | |
MediumShading2Accent4 | |
MediumShading2Accent5 | |
MediumShading2Accent6 | |
Table3DEffects1 | |
Table3DEffects2 | |
Table3DEffects3 | |
TableClassic1 | |
TableClassic2 | |
TableClassic3 | |
TableClassic4 | |
TableColorful1 | |
TableColorful2 | |
TableColorful3 | |
TableColumns1 | |
TableColumns2 | |
TableColumns3 | |
TableColumns4 | |
TableColumns5 | |
TableContemporary | |
TableElegant | |
TableGrid | |
TableGrid1 | |
TableGrid2 | |
TableGrid3 | |
TableGrid4 | |
TableGrid5 | |
TableGrid6 | |
TableGrid7 | |
TableGrid8 | |
TableList1 | |
TableList2 | |
TableList3 | |
TableList4 | |
TableList5 | |
TableList6 | |
TableList7 | |
TableList8 | |
TableNormal | |
TableProfessional | |
TableSimple1 | |
TableSimple2 | |
TableSimple3 | |
TableSubtle1 | |
TableSubtle2 | |
TableTheme | |
TableWeb1 | |
TableWeb2 | |
TableWeb3 | |
PlainTable1 | Plain Table 1 |
PlainTable2 | Plain Table 2 |
PlainTable3 | Plain Table 3 |
PlainTable4 | Plain Table 4 |
PlainTable5 | Plain Table 5 |
TableGridLight | Table Grid Light |
GridTable1Light | Grid Table 1 Light |
GridTable2 | Grid Table 2 |
GridTable3 | Grid Table 3 |
GridTable4 | Grid Table 4 |
GridTable5Dark | Grid Table 5 Dark |
GridTable6Colorful | Grid Table 6 Colorful |
GridTable7Colorful | Grid Table 7 Colorful |
GridTable1LightAccent1 | Grid Table 1 Light - Accent 1 |
GridTable2Accent1 | Grid Table 2 - Accent 1 |
GridTable3Accent1 | Grid Table 3 - Accent 1 |
GridTable4Accent1 | Grid Table 4 - Accent 1 |
GridTable5DarkAccent1 | Grid Table 5 Dark - Accent 1 |
GridTable6ColorfulAccent1 | Grid Table 6 Colorful - Accent 1 |
GridTable7ColorfulAccent1 | Grid Table 7 Colorful - Accent 1 |
GridTable1LightAccent2 | Grid Table 1 Light - Accent 2 |
GridTable2Accent2 | Grid Table 2 - Accent 2 |
GridTable3Accent2 | Grid Table 3 - Accent 2 |
GridTable4Accent2 | Grid Table 4 - Accent 2 |
GridTable5DarkAccent2 | Grid Table 5 Dark - Accent 2 |
GridTable6ColorfulAccent2 | Grid Table 6 Colorful - Accent 2 |
GridTable7ColorfulAccent2 | Grid Table 7 Colorful - Accent 2 |
GridTable1LightAccent3 | Grid Table 1 Light - Accent 3 |
GridTable2Accent3 | Grid Table 2 - Accent 3 |
GridTable3Accent3 | Grid Table 3 - Accent 3 |
GridTable4Accent3 | Grid Table 4 - Accent 3 |
GridTable5DarkAccent3 | Grid Table 5 Dark - Accent 3 |
GridTable6ColorfulAccent3 | Grid Table 6 Colorful - Accent 3 |
GridTable7ColorfulAccent3 | Grid Table 7 Colorful - Accent 3 |
GridTable1LightAccent4 | Grid Table 1 Light - Accent 4 |
GridTable2Accent4 | Grid Table 2 - Accent 4 |
GridTable3Accent4 | Grid Table 3 - Accent 4 |
GridTable4Accent4 | Grid Table 4 - Accent 4 |
GridTable5DarkAccent4 | Grid Table 5 Dark - Accent 4 |
GridTable6ColorfulAccent4 | Grid Table 6 Colorful - Accent 4 |
GridTable7ColorfulAccent4 | Grid Table 7 Colorful - Accent 4 |
GridTable1LightAccent5 | Grid Table 1 Light - Accent 5 |
GridTable2Accent5 | Grid Table 2 - Accent 5 |
GridTable3Accent5 | Grid Table 3 - Accent 5 |
GridTable4Accent5 | Grid Table 4 - Accent 5 |
GridTable5DarkAccent5 | Grid Table 5 Dark - Accent 5 |
GridTable6ColorfulAccent5 | Grid Table 6 Colorful - Accent 5 |
GridTable7ColorfulAccent5 | Grid Table 7 Colorful - Accent 5 |
GridTable1LightAccent6 | Grid Table 1 Light - Accent 6 |
GridTable2Accent6 | Grid Table 2 - Accent 6 |
GridTable3Accent6 | Grid Table 3 - Accent 6 |
GridTable4Accent6 | Grid Table 4 - Accent 6 |
GridTable5DarkAccent6 | Grid Table 5 Dark - Accent 6 |
GridTable6ColorfulAccent6 | Grid Table 6 Colorful - Accent 6 |
GridTable7ColorfulAccent6 | Grid Table 7 Colorful - Accent 6 |
ListTable1Light | List Table 1 Light |
ListTable2 | List Table 2 |
ListTable3 | List Table 3 |
ListTable4 | List Table 4 |
ListTable5Dark | List Table 5 Dark |
ListTable6Colorful | List Table 6 Colorful |
ListTable7Colorful | List Table 7 Colorful |
ListTable1LightAccent1 | List Table 1 Light - Accent 1 |
ListTable2Accent1 | List Table 2 - Accent 1 |
ListTable3Accent1 | List Table 3 - Accent 1 |
ListTable4Accent1 | List Table 4 - Accent 1 |
ListTable5DarkAccent1 | List Table 5 Dark - Accent 1 |
ListTable6ColorfulAccent1 | List Table 6 Colorful - Accent 1 |
ListTable7ColorfulAccent1 | List Table 7 Colorful - Accent 1 |
ListTable1LightAccent2 | List Table 1 Light - Accent 2 |
ListTable2Accent2 | List Table 2 - Accent 2 |
ListTable3Accent2 | List Table 3 - Accent 2 |
ListTable4Accent2 | List Table 4 - Accent 2 |
ListTable5DarkAccent2 | List Table 5 Dark - Accent 2 |
ListTable6ColorfulAccent2 | List Table 6 Colorful - Accent 2 |
ListTable7ColorfulAccent2 | List Table 7 Colorful - Accent 2 |
ListTable1LightAccent3 | List Table 1 Light - Accent 3 |
ListTable2Accent3 | List Table 2 - Accent 3 |
ListTable3Accent3 | List Table 3 - Accent 3 |
ListTable4Accent3 | List Table 4 - Accent 3 |
ListTable5DarkAccent3 | List Table 5 Dark - Accent 3 |
ListTable6ColorfulAccent3 | List Table 6 Colorful - Accent 3 |
ListTable7ColorfulAccent3 | List Table 7 Colorful - Accent 3 |
ListTable1LightAccent4 | List Table 1 Light - Accent 4 |
ListTable2Accent4 | List Table 2 - Accent 4 |
ListTable3Accent4 | List Table 3 - Accent 4 |
ListTable4Accent4 | List Table 4 - Accent 4 |
ListTable5DarkAccent4 | List Table 5 Dark - Accent 4 |
ListTable6ColorfulAccent4 | List Table 6 Colorful - Accent 4 |
ListTable7ColorfulAccent4 | List Table 7 Colorful - Accent 4 |
ListTable1LightAccent5 | List Table 1 Light - Accent 5 |
ListTable2Accent5 | List Table 2 - Accent 5 |
ListTable3Accent5 | List Table 3 - Accent 5 |
ListTable4Accent5 | List Table 4 - Accent 5 |
ListTable5DarkAccent5 | List Table 5 Dark - Accent 5 |
ListTable6ColorfulAccent5 | List Table 6 Colorful - Accent 5 |
ListTable7ColorfulAccent5 | List Table 7 Colorful - Accent 5 |
ListTable1LightAccent6 | List Table 1 Light - Accent 6 |
ListTable2Accent6 | List Table 2 - Accent 6 |
ListTable3Accent6 | List Table 3 - Accent 6 |
ListTable4Accent6 | List Table 4 - Accent 6 |
ListTable5DarkAccent6 | List Table 5 Dark - Accent 6 |
ListTable6ColorfulAccent6 | List Table 6 Colorful - Accent 6 |
ListTable7ColorfulAccent6 | List Table 7 Colorful - Accent 6 |
Mention | The Mention style. |
SmartHyperlink | The SmartHyperlink style. |
Hashtag | The Hashtag style. |
UnresolvedMention | The UnresolvedMention style. |
User | A user defined style. |
Nil | Reserved for internal use. |
Examples
Shows how to change the style of existing text.
let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);
// Below are two ways of referencing styles.
// 1 - Using the style name:
builder.font.styleName = "Emphasis";
builder.writeln("Text originally in \"Emphasis\" style");
// 2 - Using a built-in style identifier:
builder.font.styleIdentifier = aw.StyleIdentifier.IntenseEmphasis;
builder.writeln("Text originally in \"Intense Emphasis\" style");
// Convert all uses of one style to another,
// using the above methods to reference old and new styles.
for (let run of doc.getChildNodes(aw.NodeType.Run, true).toArray().map(node => node.asRun()))
{
if (run.font.styleName == "Emphasis")
run.font.styleName = "Strong";
if (run.font.styleIdentifier == aw.StyleIdentifier.IntenseEmphasis)
run.font.styleIdentifier = aw.StyleIdentifier.Strong;
}
doc.save(base.artifactsDir + "Font.ChangeStyle.docx");
See Also
- module Aspose.Words