Edit

Share via


Word.BuiltInStyleName enum

Represents the built-in style in a Word document.

Remarks

[ API set: WordApi 1.3 ]

Important: This enum was renamed from Style to BuiltInStyleName in WordApi 1.5.

Examples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/25-paragraph/insert-formatted-text.yaml

await Word.run(async (context) => {
  const sentence: Word.Paragraph = context.document.body.insertParagraph(
    "To be or not to be",
    "End"
  );

  // Use styleBuiltIn to use an enumeration of existing styles. If your style is custom make sure to use: range.style = "name of your style";
  sentence.styleBuiltIn = Word.BuiltInStyleName.intenseReference;

  await context.sync();
});

Fields

bibliography = "Bibliography"

Bibliography style.

bookTitle = "BookTitle"

Book title style.

caption = "Caption"

Caption style.

emphasis = "Emphasis"

Emphasis style.

endnoteReference = "EndnoteReference"

Endnote reference style.

endnoteText = "EndnoteText"

Endnote text style.

footer = "Footer"

Footer style.

footnoteReference = "FootnoteReference"

Footnote reference style.

footnoteText = "FootnoteText"

Footnote text style.

gridTable1Light = "GridTable1Light"

Grid table light style 1.

gridTable1Light_Accent1 = "GridTable1Light_Accent1"

Grid table light style 1, accent 1.

gridTable1Light_Accent2 = "GridTable1Light_Accent2"

Grid table light style 1, accent 2.

gridTable1Light_Accent3 = "GridTable1Light_Accent3"

Grid table light style 1, accent 3.

gridTable1Light_Accent4 = "GridTable1Light_Accent4"

Grid table light style 1, accent 4.

gridTable1Light_Accent5 = "GridTable1Light_Accent5"

Grid table light style 1, accent 5.

gridTable1Light_Accent6 = "GridTable1Light_Accent6"

Grid table light style 1, accent 6.

gridTable2 = "GridTable2"

Grid table style 2.

gridTable2_Accent1 = "GridTable2_Accent1"

Grid table style 2, accent 1.

gridTable2_Accent2 = "GridTable2_Accent2"

Grid table style 2, accent 2.

gridTable2_Accent3 = "GridTable2_Accent3"

Grid table style 2, accent 3.

gridTable2_Accent4 = "GridTable2_Accent4"

Grid table style 2, accent 4.

gridTable2_Accent5 = "GridTable2_Accent5"

Grid table style 2, accent 5.

gridTable2_Accent6 = "GridTable2_Accent6"

Grid table style 2, accent 6.

gridTable3 = "GridTable3"

Grid table style 3.

gridTable3_Accent1 = "GridTable3_Accent1"

Grid table style 3, accent 1.

gridTable3_Accent2 = "GridTable3_Accent2"

Grid table style 3, accent 2.

gridTable3_Accent3 = "GridTable3_Accent3"

Grid table style 3, accent 3.

gridTable3_Accent4 = "GridTable3_Accent4"

Grid table style 3, accent 4.

gridTable3_Accent5 = "GridTable3_Accent5"

Grid table style 3, accent 5.

gridTable3_Accent6 = "GridTable3_Accent6"

Grid table style 3, accent 6.

gridTable4 = "GridTable4"

Grid table style 4.

gridTable4_Accent1 = "GridTable4_Accent1"

Grid table style 4, accent 1.

gridTable4_Accent2 = "GridTable4_Accent2"

Grid table style 4, accent 2.

gridTable4_Accent3 = "GridTable4_Accent3"

Grid table style 4, accent 3.

gridTable4_Accent4 = "GridTable4_Accent4"

Grid table style 4, accent 4.

gridTable4_Accent5 = "GridTable4_Accent5"

Grid table style 4, accent 5.

gridTable4_Accent6 = "GridTable4_Accent6"

Grid table style 4, accent 6.

gridTable5Dark = "GridTable5Dark"

Grid table dark style 5.

gridTable5Dark_Accent1 = "GridTable5Dark_Accent1"

Grid table dark style 5, accent 1.

gridTable5Dark_Accent2 = "GridTable5Dark_Accent2"

Grid table dark style 5, accent 2.

gridTable5Dark_Accent3 = "GridTable5Dark_Accent3"

Grid table dark style 5, accent 3.

gridTable5Dark_Accent4 = "GridTable5Dark_Accent4"

Grid table dark style 5, accent 4.

gridTable5Dark_Accent5 = "GridTable5Dark_Accent5"

Grid table dark style 5, accent 5.

gridTable5Dark_Accent6 = "GridTable5Dark_Accent6"

Grid table dark style 5, accent 6.

gridTable6Colorful = "GridTable6Colorful"

Grid table colorful style 6.

gridTable6Colorful_Accent1 = "GridTable6Colorful_Accent1"

Grid table colorful style 6, accent 1.

gridTable6Colorful_Accent2 = "GridTable6Colorful_Accent2"

Grid table colorful style 6, accent 2.

gridTable6Colorful_Accent3 = "GridTable6Colorful_Accent3"

Grid table colorful style 6, accent 3.

gridTable6Colorful_Accent4 = "GridTable6Colorful_Accent4"

Grid table colorful style 6, accent 4.

gridTable6Colorful_Accent5 = "GridTable6Colorful_Accent5"

Grid table colorful style 6, accent 5.

gridTable6Colorful_Accent6 = "GridTable6Colorful_Accent6"

Grid table colorful style 6, accent 6.

gridTable7Colorful = "GridTable7Colorful"

Grid table colorful style 7.

gridTable7Colorful_Accent1 = "GridTable7Colorful_Accent1"

Grid table colorful style 7, accent 1.

gridTable7Colorful_Accent2 = "GridTable7Colorful_Accent2"

Grid table colorful style 7, accent 2.

gridTable7Colorful_Accent3 = "GridTable7Colorful_Accent3"

Grid table colorful style 7, accent 3.

gridTable7Colorful_Accent4 = "GridTable7Colorful_Accent4"

Grid table colorful style 7, accent 4.

gridTable7Colorful_Accent5 = "GridTable7Colorful_Accent5"

Grid table colorful style 7, accent 5.

gridTable7Colorful_Accent6 = "GridTable7Colorful_Accent6"

Grid table colorful style 7, accent 6.

header = "Header"

Header style.

heading1 = "Heading1"

Heading 1 style.

heading2 = "Heading2"

Heading 2 style.

heading3 = "Heading3"

Heading 3 style.

heading4 = "Heading4"

Heading 4 style.

heading5 = "Heading5"

Heading 5 style.

heading6 = "Heading6"

Heading 6 style.

heading7 = "Heading7"

Heading 7 style.

heading8 = "Heading8"

Heading 8 style.

heading9 = "Heading9"

Heading 9 style.

hyperlink = "Hyperlink"

Hyperlink style.

intenseEmphasis = "IntenseEmphasis"

Intense emphasis style.

intenseQuote = "IntenseQuote"

Intense quote style.

intenseReference = "IntenseReference"

Intense reference style.

listParagraph = "ListParagraph"

List paragraph style.

listTable1Light = "ListTable1Light"

List table light style 1.

listTable1Light_Accent1 = "ListTable1Light_Accent1"

List table light style 1, accent 1.

listTable1Light_Accent2 = "ListTable1Light_Accent2"

List table light style 1, accent 2.

listTable1Light_Accent3 = "ListTable1Light_Accent3"

List table light style 1, accent 3.

listTable1Light_Accent4 = "ListTable1Light_Accent4"

List table light style 1, accent 4.

listTable1Light_Accent5 = "ListTable1Light_Accent5"

List table light style 1, accent 5.

listTable1Light_Accent6 = "ListTable1Light_Accent6"

List table light style 1, accent 6.

listTable2 = "ListTable2"

List table style 2.

listTable2_Accent1 = "ListTable2_Accent1"

List table style 2, accent 1.

listTable2_Accent2 = "ListTable2_Accent2"

List table style 2, accent 2.

listTable2_Accent3 = "ListTable2_Accent3"

List table style 2, accent 3.

listTable2_Accent4 = "ListTable2_Accent4"

List table style 2, accent 4.

listTable2_Accent5 = "ListTable2_Accent5"

List table style 2, accent 5.

listTable2_Accent6 = "ListTable2_Accent6"

List table style 2, accent 6.

listTable3 = "ListTable3"

List table style 3.

listTable3_Accent1 = "ListTable3_Accent1"

List table style 3, accent 1.

listTable3_Accent2 = "ListTable3_Accent2"

List table style 3, accent 2.

listTable3_Accent3 = "ListTable3_Accent3"

List table style 3, accent 3.

listTable3_Accent4 = "ListTable3_Accent4"

List table style 3, accent 4.

listTable3_Accent5 = "ListTable3_Accent5"

List table style 3, accent 5.

listTable3_Accent6 = "ListTable3_Accent6"

List table style 3, accent 6.

listTable4 = "ListTable4"

List table style 4.

listTable4_Accent1 = "ListTable4_Accent1"

List table style 4, accent 1.

listTable4_Accent2 = "ListTable4_Accent2"

List table style 4, accent 2.

listTable4_Accent3 = "ListTable4_Accent3"

List table style 4, accent 3.

listTable4_Accent4 = "ListTable4_Accent4"

List table style 4, accent 4.

listTable4_Accent5 = "ListTable4_Accent5"

List table style 4, accent 5.

listTable4_Accent6 = "ListTable4_Accent6"

List table style 4, accent 6.

listTable5Dark = "ListTable5Dark"

List table dark style 5.

listTable5Dark_Accent1 = "ListTable5Dark_Accent1"

List table dark style 5, accent 1.

listTable5Dark_Accent2 = "ListTable5Dark_Accent2"

List table dark style 5, accent 2.

listTable5Dark_Accent3 = "ListTable5Dark_Accent3"

List table dark style 5, accent 3.

listTable5Dark_Accent4 = "ListTable5Dark_Accent4"

List table dark style 5, accent 4.

listTable5Dark_Accent5 = "ListTable5Dark_Accent5"

List table dark style 5, accent 5.

listTable5Dark_Accent6 = "ListTable5Dark_Accent6"

List table dark style 5, accent 6.

listTable6Colorful = "ListTable6Colorful"

List table colorful style 6.

listTable6Colorful_Accent1 = "ListTable6Colorful_Accent1"

List table colorful style 6, accent 1.

listTable6Colorful_Accent2 = "ListTable6Colorful_Accent2"

List table colorful style 6, accent 2.

listTable6Colorful_Accent3 = "ListTable6Colorful_Accent3"

List table colorful style 6, accent 3.

listTable6Colorful_Accent4 = "ListTable6Colorful_Accent4"

List table colorful style 6, accent 4.

listTable6Colorful_Accent5 = "ListTable6Colorful_Accent5"

List table colorful style 6, accent 5.

listTable6Colorful_Accent6 = "ListTable6Colorful_Accent6"

List table colorful style 6, accent 6.

listTable7Colorful = "ListTable7Colorful"

List table colorful style 7.

listTable7Colorful_Accent1 = "ListTable7Colorful_Accent1"

List table colorful style 7, accent 1.

listTable7Colorful_Accent2 = "ListTable7Colorful_Accent2"

List table colorful style 7, accent 2.

listTable7Colorful_Accent3 = "ListTable7Colorful_Accent3"

List table colorful style 7, accent 3.

listTable7Colorful_Accent4 = "ListTable7Colorful_Accent4"

List table colorful style 7, accent 4.

listTable7Colorful_Accent5 = "ListTable7Colorful_Accent5"

List table colorful style 7, accent 5.

listTable7Colorful_Accent6 = "ListTable7Colorful_Accent6"

List table colorful style 7, accent 6.

normal = "Normal"

Reset character and paragraph style to default.

noSpacing = "NoSpacing"

No spacing style.

other = "Other"

Mixed styles or other style not in this list.

plainTable1 = "PlainTable1"

Plain table style 1.

plainTable2 = "PlainTable2"

Plain table style 2.

plainTable3 = "PlainTable3"

Plain table style 3.

plainTable4 = "PlainTable4"

Plain table style 4.

plainTable5 = "PlainTable5"

Plain table style 5.

quote = "Quote"

Quote style.

strong = "Strong"

Strong style.

subtitle = "Subtitle"

Subtitle style.

subtleEmphasis = "SubtleEmphasis"

Subtle emphasis style.

subtleReference = "SubtleReference"

Subtle reference style.

tableGrid = "TableGrid"

Table grid style.

tableGridLight = "TableGridLight"

Table grid light style.

title = "Title"

Title style.

toc1 = "Toc1"

Table-of-content level 1.

toc2 = "Toc2"

Table-of-content level 2.

toc3 = "Toc3"

Table-of-content level 3.

toc4 = "Toc4"

Table-of-content level 4.

toc5 = "Toc5"

Table-of-content level 5.

toc6 = "Toc6"

Table-of-content level 6.

toc7 = "Toc7"

Table-of-content level 7.

toc8 = "Toc8"

Table-of-content level 8.

toc9 = "Toc9"

Table-of-content level 9.

tocHeading = "TocHeading"

Table-of-content heading.