AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Procesador de texto / Tipos de variables
  • Properties specific to docNumbering variables
  • Adding a numbering description to a document
  • Using numberings created programmatically
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The docNumbering type is used to define the advanced characteristics of a numbering used in a Word Processing document. The characteristics of this numbering can be defined and modified using various WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Ejemplo
MyDoc is Document = WP_NoName1
MyNumbering is docNumbering
Level is docNumberingLevel

// Define the numbering

// 1st numbering level
Level.Text = "%1) "
Level.Text = "%1) "
Level.InitialValue = 1
Level.PageLayout.IndentFirstLine = 10
Level.Format = numfRomanUppercase
Add(MyNumbering.Level, Level)

// Second numbering level
Level.Text = "%2] "
Level.InitialValue = 1
Level.PageLayout.IndentFirstLine = 20
Level.Format = numfUppercaseLetter
Add(MyNumbering.Level, Level)

// Third numbering level
Level.Text = "%3\ "
Level.InitialValue = 1
Level.PageLayout.IndentFirstLine = 30
Level.Format = numfLowercaseLetter
Add(MyNumbering.Level, Level)


// Add the numbering to the document
let id = Add(MyDoc.Numbering, MyNumbering)

// Define the numbering associated with paragraph 1
MyDoc.Paragraph[1].Numbering.Identifier = id
MyDoc.Paragraph[1].Numbering.Level = 1

// Display the document in the Word Processing control
WP_NoName1 = MyDoc
Propiedades

Properties specific to docNumbering variables

The following properties can be used to handle a numbering description:
Property nameType usedEffect
IdentifierIntegerIdentifier of numbering. This identifier can be used to specify the numbering used by a paragraph.
This property is defined when the numbering is added to the document.
This property is read-only.
LevelArray of docNumberingLevelList of descriptions of numbering levels.
NameCharacter stringName of numbering.
TmplCharacter stringSpecific identifier for using the numbering in MS Word.
This property is read-only.
Note These properties can be used using one of two syntaxes:
  • <Variable name>.<Property name>
  • <Variable name>.<Property name>
Observaciones

Adding a numbering description to a document

To add a numbering description to a document, you have the ability to use Add with the following syntax:
Add(Document.Numbering, MyNumbering)
where:

Using numberings created programmatically

The numberings created programmatically can be used via the ribbon. They appear in the ribbon, in the "Paragraphs" group, by expanding the Numbering option, in the "Document numbering" group.
Versión mínima requerida
  • Versión 22
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local