Word.Interfaces.StyleUpdateData interface

An interface for updating data on the Style object, for use in style.set({ ... }).

Properties

baseStyle

Specifies the name of an existing style to use as the base formatting of another style.

font

Gets a font object that represents the character formatting of the specified style.

nextParagraphStyle

Specifies the name of the style to be applied automatically to a new paragraph that is inserted after a paragraph formatted with the specified style.

paragraphFormat

Gets a ParagraphFormat object that represents the paragraph settings for the specified style.

priority

Specifies the priority.

quickStyle

Specifies whether the style corresponds to an available quick style.

unhideWhenUsed

Specifies whether the specified style is made visible as a recommended style in the Styles and in the Styles task pane in Microsoft Word after it's used in the document.

visibility

Specifies whether the specified style is visible as a recommended style in the Styles gallery and in the Styles task pane.

Property Details

baseStyle

Specifies the name of an existing style to use as the base formatting of another style.

baseStyle?: string;

Property Value

string

Remarks

[ API set: WordApi 1.5 ]

Note: The ability to set baseStyle was introduced in WordApi 1.6.

font

Gets a font object that represents the character formatting of the specified style.

font?: Word.Interfaces.FontUpdateData;

Property Value

Remarks

[ API set: WordApi 1.5 ]

nextParagraphStyle

Specifies the name of the style to be applied automatically to a new paragraph that is inserted after a paragraph formatted with the specified style.

nextParagraphStyle?: string;

Property Value

string

Remarks

[ API set: WordApi 1.5 ]

Note: The ability to set nextParagraphStyle was introduced in WordApi 1.6.

paragraphFormat

Gets a ParagraphFormat object that represents the paragraph settings for the specified style.

paragraphFormat?: Word.Interfaces.ParagraphFormatUpdateData;

Property Value

Remarks

[ API set: WordApi 1.5 ]

priority

Specifies the priority.

priority?: number;

Property Value

number

Remarks

[ API set: WordApi 1.5 ]

quickStyle

Specifies whether the style corresponds to an available quick style.

quickStyle?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi 1.5 ]

unhideWhenUsed

Specifies whether the specified style is made visible as a recommended style in the Styles and in the Styles task pane in Microsoft Word after it's used in the document.

unhideWhenUsed?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi 1.5 ]

visibility

Specifies whether the specified style is visible as a recommended style in the Styles gallery and in the Styles task pane.

visibility?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi 1.5 ]