共用方式為


ListStyle Class

Defines the ListStyle Class.When the object is serialized out as xml, its qualified name is a:lstStyle.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ListStyle

Namespace:  DocumentFormat.OpenXml.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Level7ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(DefaultParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level1ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level2ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level3ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(Level5ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level6ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level4ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level8ParagraphProperties))> _
<ChildElementInfoAttribute(GetType(Level9ParagraphProperties))> _
Public Class ListStyle _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ListStyle
[ChildElementInfoAttribute(typeof(Level7ParagraphProperties))]
[ChildElementInfoAttribute(typeof(DefaultParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level1ParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level2ParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level3ParagraphProperties))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(Level5ParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level6ParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level4ParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level8ParagraphProperties))]
[ChildElementInfoAttribute(typeof(Level9ParagraphProperties))]
public class ListStyle : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • DefaultParagraphProperties <a:defPPr>

  • Level1ParagraphProperties <a:lvl1pPr>

  • Level2ParagraphProperties <a:lvl2pPr>

  • Level3ParagraphProperties <a:lvl3pPr>

  • Level4ParagraphProperties <a:lvl4pPr>

  • Level5ParagraphProperties <a:lvl5pPr>

  • Level6ParagraphProperties <a:lvl6pPr>

  • Level7ParagraphProperties <a:lvl7pPr>

  • Level8ParagraphProperties <a:lvl8pPr>

  • Level9ParagraphProperties <a:lvl9pPr>

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1st Edition]

21.1.2.4.12 lstStyle (Text List Styles)

This element specifies the list of styles associated with this body of text.

Parent Elements

lnDef (§20.1.4.1.20); rich (§21.2.2.156); spDef (§20.1.4.1.27); t (§21.4.3.8); txBody (§21.3.2.26); txBody (§20.1.2.2.40); txBody (§20.5.2.34); txBody (§19.3.1.51); txDef (§20.1.4.1.28); txPr (§21.2.2.216)

Child Elements

Subclause

defPPr (Default Paragraph Style)

§21.1.2.2.2

extLst (Extension List)

§20.1.2.2.15

lvl1pPr (List Level 1 Text Style)

§21.1.2.4.13

lvl2pPr (List Level 2 Text Style)

§21.1.2.4.14

lvl3pPr (List Level 3 Text Style)

§21.1.2.4.15

lvl4pPr (List Level 4 Text Style)

§21.1.2.4.16

lvl5pPr (List Level 5 Text Style)

§21.1.2.4.17

lvl6pPr (List Level 6 Text Style)

§21.1.2.4.18

lvl7pPr (List Level 7 Text Style)

§21.1.2.4.19

lvl8pPr (List Level 8 Text Style)

§21.1.2.4.20

lvl9pPr (List Level 9 Text Style)

§21.1.2.4.21

[Note: The W3C XML Schema definition of this element’s content model (CT_TextListStyle) is located in §A.4.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ListStyle Members

DocumentFormat.OpenXml.Drawing Namespace