ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions / Types of variables
  • Properties specific to docNumbering variables
  • Adding a numbering description to a document
  • Using numberings created programmatically
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Example
MonDoc is Document = TT_SansNom1
MaNumérotation is docNumbering
Niveau is docNumberingLevel

// Définition de la numérotation

// 1er niveau de la numérotation
Niveau.Text = "%1) "
Niveau.Text = "%1) "
Niveau.InitialValue = 1
Niveau.PageLayout.IndentFirstLine = 10
Niveau.Format = numfRomanUppercase
Add(MaNumérotation.Level, Niveau)

// Second niveau de la numérotation
Niveau.Text = "%2] "
Niveau.InitialValue = 1
Niveau.PageLayout.IndentFirstLine = 20
Niveau.Format = numfUppercaseLetter
Add(MaNumérotation.Level, Niveau)

// Troisième niveau de la numérotation
Niveau.Text = "%3\ "
Niveau.InitialValue = 1
Niveau.PageLayout.IndentFirstLine = 30
Niveau.Format = numfLowercaseLetter
Add(MaNumérotation.Level, Niveau)


// Ajout de la numérotation au document
let id = Add(MonDoc.Numbering, MaNumérotation)

// Définition de la numérotation associée au paragraphe 1
MonDoc.Paragraph[1].Numbering.Identifier = id
MonDoc.Paragraph[1].Numbering.Level = 1

// Affichage du document dans le champ Traitement de texte
TT_SansNom1 = MonDoc
Properties

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>
Remarks

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.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help