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 docStyle variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
docStyle (Type of variable)
In french: docStyle
The docStyle type is used to define the advanced characteristics of a style belonging to a document, a paragraph or a document fragment. The characteristics of this style are returned by several WLanguage properties.
CAUTION: This type must not be used directly. It must only be used via the Document variables that contain an arry of styles associated with the document.
To associate a style to a paragraph, you just have to use the style identifier (Property StyleID available in the variables of type docParagraph, docFragment and docElementText).
Example
MonChampDoc is Control = {"ChampDoc", indControl}
// Récupération du document associé
MonDoc is Document = MonChampDoc
// Récupération du fragment correspondant à la sélection en cours dans le champ
Frag is docFragment = MonDoc[MonChampDoc.Curseur TO MonChampDoc.FinCurseur]
// Passage du contenu du fragment en gras
Frag.Style.PoliceGras = True
Remarks

Properties specific to the description of docStyle variables

The following properties can be used to handle a style:
Property nameType usedEffect
AliasCharacter stringDisplay name of style. This name is used if the Property Name does not match a display name.
If several names are available, they are separated by a comma (",").
This property is available in read-only.
InvisibleBoolean
  • True if the style must be hidden to the user,
  • False otherwise.
If the Invisible property is True, this style is an internal style (for example, this style is a Parent style and it must not be proposed in the IHM).
This property is available in read-only.
InvisibleIfNotUsedBoolean
  • True if the style must be hidden to the user except if it is already used in the document,
  • False otherwise.
This property is available in read-only.
NameCharacter stringPreset name of style or display name of style.
This property is available in read-only.
ByDefaultBoolean
  • True if the style is the default style,
  • False otherwise.
DisplayPriorityIntegerPriority order when displaying styles in an interface (GUI). This priority order is an ascending order.
StyleIDCharacter stringUnique identifier of style in the document.
This property is available in read-only mode.
StyleIDLinkedCharacter stringIdentifier of linked style (Paragraph style or Character style).
If the style is a paragraph style, this property returns the identifier of the associated character type.
This property is available in read-only.
StyleIDParentCharacter stringIdentifier of parent style (which means on which the current style is based).
This property is available in read-only.
TypeInteger constantType of style:
  • docstyleCharacter: Style of characters. This style is applied to a text section.
  • docstyleNumbering: Numbering style.
  • docstyleParagraph: Paragraph style. This style is applied to an entire paragraph.
  • docstyleTable: Style of table.
This property is available in read-only mode.
Remark: the change of paragraph or fragment style automatically applies the linked paragraph style and character style if they exist.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment