Navigation:  Getting Started with TextDynamic > Introduction to the API > Properties >

IWPTextObj CurrObj

Previous pageReturn to chapter overviewNext page

This is the interface to the object interface of the current object.

 

The current object is the object which has been inserted last.

 

This C# code inserts a horizontal line and then changes it's color to red.

 

wpdllInt1.TextCursor.InputObject(

      TextObjTypes.wpobjHorizontalLine,"","",0);

IWPTextObj obj = wpdllInt1.CurrObj;

if(obj!=null)

   obj.IntParam = wpdllInt1.ToRGB(Color.Red);