Pregunta

Tengo el siguiente WordML fragmento de código que funciona bien para las listas numeradas :

<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
  <w:lists>
    <w:listDef w:listDefId="1">
      <w:lvl w:ilvl="0">
        <w:start w:val="1" />
        <w:lvlText w:val="%1." />
        <w:pPr>
          <w:ind w:left="720" w:hanging="360" />
        </w:pPr>
      </w:lvl>
      <w:lvl w:ilvl="1">
        <w:start w:val="1" />
        <w:lvlText w:val="%2." />
        <w:pPr>
          <w:ind w:left="1080" w:hanging="360" />
        </w:pPr>
      </w:lvl>
    </w:listDef>
    <w:list w:ilfo="2">
      <w:ilst w:val="1" />
    </w:list>
  </w:lists>
  <w:body>
    <wx:sect>
      <w:p>
        <w:pPr>
          <w:listPr>
            <w:ilvl w:val="0" />
            <w:ilfo w:val="2" />
          </w:listPr>
        </w:pPr>
        <w:r>
          <w:t xml:space="preserve">Item 1</w:t>
        </w:r>
      </w:p>
      <w:p>
        <w:pPr>
          <w:listPr>
            <w:ilvl w:val="1" />
            <w:ilfo w:val="2" />
          </w:listPr>
        </w:pPr>
        <w:r>
          <w:t xml:space="preserve">Item 1.1</w:t>
        </w:r>
      </w:p>
      <w:p>
        <w:pPr>
          <w:listPr>
            <w:ilvl w:val="1" />
            <w:ilfo w:val="2" />
          </w:listPr>
        </w:pPr>
        <w:r>
          <w:t xml:space="preserve">Item 1.2</w:t>
        </w:r>
      </w:p>
      <w:p>
        <w:pPr>
          <w:listPr>
            <w:ilvl w:val="0" />
            <w:ilfo w:val="2" />
          </w:listPr>
        </w:pPr>
        <w:r>
          <w:t xml:space="preserve">Item 2</w:t>
        </w:r>
      </w:p>
      <w:p>
        <w:pPr>
          <w:listPr>
            <w:ilvl w:val="1" />
            <w:ilfo w:val="2" />
          </w:listPr>
        </w:pPr>
        <w:r>
          <w:t xml:space="preserve">Item 2.2</w:t>
        </w:r>
      </w:p>
    </wx:sect>
  </w:body>
</w:wordDocument>

Sin embargo, no puedo entender cómo crear una lista con viñetas.He visto lvlPicBulletId pero no entiendo como usarlo.Alguien sabe cómo hacerlo?

Gracias.

¿Fue útil?

Solución

Resulta que las balas son simplemente personajes de fuentes específicas. Por ejemplo, aquí es el elemento lvl para un círculo relleno:

<w:lvl w:ilvl="0">
  <w:lvlText w:val="&#183;" />
  <w:rPr>
    <w:rFonts w:ascii="Symbol" w:h-ansi="Symbol" w:hint="default" />
  </w:rPr>
  <w:pPr>
    <w:ind w:left="720" w:hanging="360" />
  </w:pPr>
</w:lvl>

Otros consejos

Una lista con viñetas en WordML está definido por el nivel NFC valor de 23.

<w:listDef>
  <w:lvl>
    <w:nfc w:val="23"/>
  </w:lvl>
<w:listDef>

A continuación, puede definir el símbolo que se utiliza para la bala por la configuración de la w:lvlText valor.

<w:listDef>
  <w:lvl>
    <w:lvlText w:val="o"/>
  </w:lvl>
</w:listDef>

La dirección URL siguiente le llevará a la NFC referencia de los elementos de la página de MSDN, pero no da mucho detalle.

http://msdn.microsoft.com/en-us/library/office/ee364387(v=oficina.11).aspx

Espero que ayude!:-)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top