Skip to main content
December 11, 2012
Question

Character Position

  • December 11, 2012
  • 1 reply
  • 1143 views

Hi All,

   I want to change the position of a particular character, i have tried changing horizontal offset of the character but it is read only property.

Please suggest a solution. Is there any other way to do this.

Thanks in Advanace,

This topic has been closed for replies.

1 reply

Jump_Over
Legend
December 11, 2012

Hi,

Use character.move() method;

Notice method parameters in

Adobe InDesign CSx Object Model

rgds

December 11, 2012

Thanks jump_Over,

But i want to move character to specific location.

Actually i need to do a character alignment for column.

What i am doing right now is

1. first select the column for which i need to do character alignment, then select a cell with a maximum number of characters in it from that column.

2. Center align that cell.

3. Take the horizontalOffset of a character for which i need to do a character alignment.

4. Assign same horizontalOffset to all cells from that column, but problem is that horizontalOffset is read only property, so not able to assign a value to horizontalOffset.

Jump_Over
Legend
December 11, 2012

Hi,

1.find longest cell content in column

2. center it

3. left (?) align all the rest column cells to the chosen position

Is it your goal?