IacDocument.ActivateObject Method

The ActivateObject method activates an object. If Object parameter is empty, the method deactivates all objects.

Syntax

Visual Basic .NET:

Public Function ActivateObject (ByVal name As String) As Boolean

C#:

public System.Boolean ActivateObject ( System.String name )

Parameters

name

Object is the reference of the object to be activated. If this parameter is empty, all objects will be deactivated.

Return Value

This method returns "True" if the call succeeded and "False" otherwise. An exception might be generated if the provided license key is wrong.

Remarks

Member of Amyuni.PDFCreator.IacDocument.

Example

// set the license key
pdfCreator1.SetLicenseKey("Amyuni Tech.", "07EFAB010...C4FB9CFD");
 
// create a rectangular frame
Amyuni.PDFCreator.IacObject frame = pdfCreator1.Document.GetPage(1).CreateObject(IacObjectType.acObjectTypeText, "Frame 1");
 
// position the frame
frame.AttributeByName("Left").Value = 200;
frame.AttributeByName("Top").Value = 600;
frame.AttributeByName("Right").Value = 2000;
frame.AttributeByName("Bottom").Value = 800;
frame.AttributeByName("BorderWidth").Value = 2;
 
//activate the text object "Frame 1"
pdfCreator1.Document.ActivateObject("Frame 1");