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 docElementLink variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The docElementLink type is used to get the advanced characteristics of a Link element in a docElement variable.
The characteristics of the docElementLink variable can be identified and changed using different WLanguage properties.
CAUTION: This type must not be used directly. It must be used via the docElement type.
Example
// Chargement du document
TT_MonDoc = ""
// Création d'une élément de type lien
elt is docElement
elt.Type = typeDocElementLink
elt.Link.Link = "https://www.pcsoft.com"
elt.Link.Type = typeDocLinkURL
// Création d'un fragment de document lié au champ utilisé
f is docFragment(TT_MonDoc, 1)
// Ajout du lien dans le document
DocInsert(f, elt)
// Recherche le lien pour ajouter le texte et formater le style
FOR EACH eltInsere OF f.Element
	let parent = eltInsere.Parent
	parent.Link.Content.Text = "Site de PC SOFT"
	parent.Link.Content.Formatting.TextColor = DarkBlue
	parent.Link.Content.Formatting.UnderlineColor = DarkBlue
	parent.Link.Content.Formatting.FontUnderlined = True
	BREAK
END
Properties

Properties specific to docElementLink variables

The following properties can be used to handle a lilnk in a document:
Property nameType usedEffect
ContentdocFragment variableText associated with the link.
LinkCharacter stringLink content (file path, site name, etc.). The link caption cannot be known.
TooltipCharacter stringContent of tooltip associated with the link.
TypeIntegerType of link:
  • typeDocBookmarkLink Bookmark link.
  • typeDocLienURL URL link to open a document.
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