PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of docNumberingLevel variables
  • Adding a numbering description to a document
  • Adding a numbering level to a document
  • Using numberings created by programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The docNumberingLevel type is used to define the advanced characteristics of a numbering level used in a Word Processing document. The characteristics of this numbering level can be defined and changed using different WLanguage properties.
This type is used by the docNumbering variables.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Caution: This type of variable is available from WINDEV version 220052s (module for updating the Word Processing control applicable on WINDEV Update 1).
Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
MyDoc is Document = WP_NoName1
MyNumbering is docNumbering
Level is docNumberingLevel
 
// Define the numbering
 
// 1st numbering level
Level.Text = "%1) "
Level.Text = "%1) "
InitialValueLevel = 1
FirstLine.Set-Up.Removal.Level = 10
Level Format = numfRomanUppercase
Adds(MyNumber.Level, Level)
 
// Second numbering level
Level.Text.="%2] "
InitialValueLevel = 1
FirstLine.Set-Up.Removal.Level = 20
Level Format = numfUppercaseLetter
Adds(MyNumber.Level, Level)
 
// Third numbering level
Level.Text = "%3 _ASLASHE_".
InitialValueLevel = 1
FirstLine.Set.Up.Removal.Level = 30
Level Format = numfLowercaseLetter
Adds(MyNumber.Level, Level)
 
 
// Add the numbering to the document
OR 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
Remarks

Properties specific to the description of docNumberingLevel variables

The following properties can be used to handle a numbering level:
Property nameType usedEffect
AlignmentInteger constantThe numbering is positioned in relation to the start position of paragraph:
  • haCenter: The numbering is centered in relation to the start of paragraph.
  • haRight: The numbering is positioned on the right in relation to the start of paragraph.
  • haLeft: The numbering is positioned on the left in relation to the start of paragraph.
FormatInteger constantFormatting for this level of numbering (digits, roman digits, letters, ...):
  • numfUppercaseLetter: Numbering in uppercase letters: A, B, C, D, ...
  • numfLowercaseLetter: Numbering in lowercase letters: a, b, c, d, ...
  • numfNumeric: Numbering in digits: 1, 2, 3, 4, ...
  • numfNumericInLetters: Numbering in digits written in letters: one, two, three, four, ...
  • numfOrdinal: Ordered numbering: 1st, 2nd, 3rd, etc.
  • numfOrdinalInLetters: Ordered numbering in letters: first, second, third, ...
  • numfBullet: Numbering in bullet format. Only the bullets represented by a font character are available. You cannot create a bullet associated with an image.
  • numfRomanUppercase: Numbering in uppercase Roman digits: I, II, III, ...
  • numfRomanLowercase: Numbering in lowercase Roman digits: i, ii, iii, ...
FormattingdocFormatting variableParameters for numbering formatting.
PageLayoutLayout of numbered paragraph.
Layout.AlignmentInteger constantHorizontal alignment used for the numbered paragraph:
  • haCenter: Centered
  • haRight: Aligned to right
  • haLeft: Aligned to left
  • haJustified: Justified.
Border SETTINGSBorder variableCharacteristics of border used for the numbered paragraph.
Remark: the rounded corners are not supported.
Layout ColorBackgroundIntegerBackground color of numbered paragraph. This color can correspond to:
Layout.SpacingAfterRealSpacing after the numbered paragraph (expressed in millimeters).
This property is set to 0 by default.
SpacingFrontRealSpacing before the numbered paragraph (expressed in millimeters).
This property is set to 0 by default.
MiseEnPage.InterligneRealLine spacing (expressed in millimeters).
Used if the TypeInterline property is interlineExact or interlineMinimumproperty. .
This property is set to 0 by default.
Right.Withdrawal.page.RealRight indent of numbered paragraph (expressed in millimeters).
This property is set to 0 by default.
Left PullOutPageRealLeft indent of numbered paragraph (expressed in millimeters).
This property is set to 0 by default.
FirstLinePlacement.WithdrawalRealIndent of first line in numbered paragraph (expressed in millimeters).
This property is set to 0 by default.
MiseEnPage.TabulationPersoArray of docTabulationCustom tabulations of numbered paragraph.
MiseEnPage.TrameFondBackground variableCharacteristics of paragraph background.
MiseEnPage.TypeInterligneInteger constantType of line spacing used:
  • interlineExact: 0.
  • interlineMinimum: The line spacing corresponds at least to the value of the Property Interline. 0.
  • interlineMultiple (default value): 0.
RestartAfterIntegerLevel after which the numbering must be reinitialized. This property can correspond to:
  • 0: the numbering is never reinitialized.
  • -1: the numbering is reinitialized as soon as a higher level is incremented.
  • a value x greater than 0: the numbering is reinitialized as soon as the level x is incremented.
SeparatorInteger constantType of separator used to perform the spacing between the paragraph numbering and the rest of text:
  • numsepNone: No separator.
  • numsepSpace: The separator is a space.
  • numsepTabulation: The separator is a tabulation.
TextCharacter stringNumbering to use. The % symbol followed by a digit will contain the numbering value for the level defined by this digit.
Examples:
  • "%1 )" uses the numbering of level 1 followed by a bracket.
  • "%1. %2" displays the numbering of level 1 followed by the numbering of level 2.
For a list with bullets, characters representing the requested bullet. This character will be displayed in the font selected for the numbering formatting.
Caution: The number of the previous levels will be formatted as defined by the previous level unless the Property AllNumber is set to True.
AllInDigitBoolean
  • True in order for all the level numbers (current level and previous levels) to be written in Arabic digits,
  • False to keep the characteristics of each level.
TplcCharacter stringSpecific identifier for MS Word.
This property is available in read-only.
InitialValueIntegerStart value of numbering (must be a positive integer).

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:
Adds(MyDocument.Numbering, MyNumbering)
where:

Adding a numbering level to a document

To add a numbering level to a document, you have the ability to use Add with the following syntax:
Adds(Level.Numbering, MyLevel)
where:
  • Numbering is a docNumbering variable.
  • MyLevel is a docNumberingLevel variable.

Using numberings created by programming

The numberings created by programming 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