Skip to main content
1-Visitor
February 12, 2020
Question

Center align a note

  • February 12, 2020
  • 0 replies
  • 635 views

Hi,

 

I am creating a note using ProDtlnoteCreate().

But before that i want to center align the text.

With the help of ProDtlattachAlloc() and ProDtlnotedataAttachmentSet() I am able to keep the note on required position. 

status = ProTextStyleJustificationSet(text_style, PRO_TEXT_HRZJUST_CENTER);

status = ProTextStyleVertJustificationSet(text_style, PRO_VERTJUST_MIDDLE); - tried these for alignment but couldn't make out the result.

 

Let me know if there is any othet api/methods to center align the notes.

 

Thanks and regards,

Sekar