Edit

Share via


Word.Interfaces.ListFormatData interface

An interface describing the data returned by calling listFormat.toJSON().

Properties

isSingleList

Indicates whether the ListFormat object contains a single list.

isSingleListTemplate

Indicates whether the ListFormat object contains a single list template.

list

Returns a List object that represents the first formatted list contained in the ListFormat object.

listLevelNumber

Specifies the list level number for the first paragraph for the ListFormat object.

listString

Gets the string representation of the list value of the first paragraph in the range for the ListFormat object.

listTemplate

Gets the list template associated with the ListFormat object.

listType

Gets the type of the list for the ListFormat object.

listValue

Gets the numeric value of the the first paragraph in the range for the ListFormat object.

Property Details

isSingleList

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Indicates whether the ListFormat object contains a single list.

isSingleList?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

isSingleListTemplate

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Indicates whether the ListFormat object contains a single list template.

isSingleListTemplate?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

list

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Returns a List object that represents the first formatted list contained in the ListFormat object.

list?: Word.Interfaces.ListData;

Property Value

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

listLevelNumber

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies the list level number for the first paragraph for the ListFormat object.

listLevelNumber?: number;

Property Value

number

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

listString

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Gets the string representation of the list value of the first paragraph in the range for the ListFormat object.

listString?: string;

Property Value

string

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

listTemplate

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Gets the list template associated with the ListFormat object.

listTemplate?: Word.Interfaces.ListTemplateData;

Property Value

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

listType

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Gets the type of the list for the ListFormat object.

listType?: Word.ListType | "ListNoNumbering" | "ListListNumOnly" | "ListBullet" | "ListSimpleNumbering" | "ListOutlineNumbering" | "ListMixedNumbering" | "ListPictureBullet";

Property Value

Word.ListType | "ListNoNumbering" | "ListListNumOnly" | "ListBullet" | "ListSimpleNumbering" | "ListOutlineNumbering" | "ListMixedNumbering" | "ListPictureBullet"

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

listValue

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Gets the numeric value of the the first paragraph in the range for the ListFormat object.

listValue?: number;

Property Value

number

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]