cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to increase the text size in table cell using jlink

nattarde
2-Guest

How to increase the text size in table cell using jlink

1 REPLY 1
bfrandsen
6-Contributor
(To:nattarde)

Text in table cells can be scaled using TableNoteInstructions

Example code:

Table t;

TableCell tc;

double scale:

DetailNoteItem note = (DetailNoteItem) t.GetCellNote(tc);

DetailNoteInstructions dni = note.GetInstructions(false);

dtln = dni.GetTextLines();

for (int i = 0; i < dtln.getarraysize(); i++) {

  dts = dtln.get(i).GetTexts();

    for (int j = 0; j < dts.getarraysize(); j++) {

      dt = dts.get(j);

      dt.SetTextHeight(dt.GetTextHeight()*scale);

    }

}

note.Modify(dni);

Top Tags