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 docElementLink 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
The docElementLink type is used to find out the advanced characteristics of a Link element found in a docElement variable.
The characteristics of this type of variable docElementLink can be known and modified using different WLanguage properties.
CAUTION: This type cannot 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 docElément
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.Elément
let parent = eltInsere.Parent
parent.Lien.Contenu.Texte = "Site de PC SOFT"
parent.Lien.Contenu.MiseEnForme.CouleurTexte = DarkBlue
parent.Lien.Contenu.MiseEnForme.CouleurSouligné = DarkBlue
parent.Lien.Contenu.MiseEnForme.PoliceSoulignée = True
BREAK
END
Remarks

Properties specific to the description of docElementLink variables

The following properties can be used to handle a lilnk in a document:
Property nameType usedEffect
Versions 23 and later
Tooltip
New in version 23
Tooltip
Tooltip
Character stringContent of tooltip associated with the link.
Versions 23 and later
Content
New in version 23
Content
Content
docFragment variableText associated with the link.
LinkCharacter stringLink content (file path, site name, ...). The link caption cannot be known.
TypeIntegerType of link :
  • typeDocLinkBookmark: Bookmark link.
  • typeDocLinkURL: URL link used to open a document.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment