|
|
|
|
- Properties specific to docElementLink variables
docElementLink (Type of variable) In french: docElémentLien
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. // Load the document WP_MyDoc = "" Â // Create a link element elt is docElement 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.Element 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 docElementLink variables The following properties can be used to handle a lilnk in a document:
| | | Property name | Type used | Effect |
---|
Content | docFragment variable | Text associated with the link. | Link | Character string | Link content (file path, site name, ...). The link caption cannot be known. | Tooltip | Character string | Content of tooltip associated with the link. | Type | Integer | Type of link: - typeDocLinkBookmark: Bookmark link.
- typeDocLinkURL: URL link used to open a document.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|