FindVpeObject

<< Click to Display Table of Contents >>

Navigation:  Template Object >

FindVpeObject

Previous pageReturn to chapter overviewNext page

In dycodoc a unique name is assigned to each VPE Object. This function searches for a given VPE Object name in the template and returns the VPE Object.

method TVPEObject TVPETemplate.FindVpeObject(

string ObjectName

)

string ObjectName

name of the VPE Object as defined in dycodoc

Returns:

a VPE Object. If the object is not found the ObjectHandle of the returned object is null.

Remarks:

The function can be used to access VPE Objects within the template directly.

Example:

ActiveX / VCL:

Dim VPEObject as TVPEObject

VPEObject = template.FindVpeObject("Text1")

VPEObject.BkgMode = VBKG_SOLID

VPEObject.BkgColor = COLOR_RED

 

.NET:

Dim VPEObject as TVPEObject

VPEObject = template.FindVpeObject("Text1")

VPEObject.BkgMode = BkgMode.Solid

VPEObject.BkgColor = Color.Red

The above example searches for the VPE Object named "Text1" in the template and changes its background mode to solid and its color to red.

 

See also:

"dycodoc Template Processing" in the Programmer's Manual

"Important Note for VPE-VCL Users" in the Programmer's Manual