PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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 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 cannot be used directly. It must be used via the docElement type.
Example
// Load the document
WP_MyDoc = ""
 
// Create a link element
elt is docElément
elt.Type = typeDocElementLink
elt.Link.Link = "https://www.windev.com"
elt.Link.Type = typeDocLinkURL
 
// Create a document fragment linked to the control used
f is docFragment(WP_MyDoc, 1)
 
// Add the link in the document
DocInsert(f, elt)
 
// Search for the link to add the text and define the style
FOR EACH eltInsert OF f.Elément
set parent = eltInsert.Parent
parent.Link.Content.Text = "PC SOFT website"
parent.Link.Content.Formatting.TextColor = DarkBlue
parent.Link.Content.Formatting.UnderlineColor = DarkBlue
parent.Link.Content.Formatting.FontUnderlined = 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
ContentdocFragment variableText associated with the link.
LinkCharacter stringLink content (file path, site name, ...). The link caption cannot be known.
TooltipCharacter stringContent of tooltip associated with the link.
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