Index

CDTDocV8

LinkAdd

The LinkAdd function adds a PowerDoc link to the PowerDoc object referenced by obj. A PowerDoc link is one of the basic field types.

Parameters

ParameterDescription

obj

Object's index in the Power Engine document.

name

A numerical value that identifies the link to be added. Can be a user-defined value or one of the following predefined PowerDoc values:

Basic PowerDoc Links PowerDoc Links For Form Controls
  • pdBodyPtr
  • pdBaselinePtr
  • pdFnDrawObjectPtr
  • pdFontDataPtr
  • pdGroupMemberPtr
  • pdImageDataPtr
  • pdLinePtr
  • pdMaskPtr
  • pdOutlinePtr
  • pdPatternFillPtr
  • pdPowerFontPtr
  • pdPowerFontRecordPtr
  • pdRowBoundPtr
  • pdShadowPtr
  • pdStylePtr
  • pdTextExtrasPtr
  • pdTextFragmentPtr
  • pdTextLayoutPtr
  • pdTextRulerHorPtr
  • pdTypoFramePtr
  • pdTypographyPtr
  • pdUnderlinePtr
  • pd3DModelSettingsPtr
  • pd3DModelDataPtr
  • pdxMediaDataPtr
  • fcColumnNextPtr
  • fcConfigPtr
  • fcControlPtr
  • fcProgramPtr

link

Represents the index of the linked PowerDoc object.

Return Value

If the function was successful, the return value is 1. Otherwise, the function returns 0 (bad input) or -1 (memory error).

Comments

To avoid unexpected rendering results, links must be assigned to PowerDoc objects in accordance with D-Type's Guidelines For Creating PowerDoc Objects.



 

Index