Right align text
I'm inserting text to textframe using InsertText() of SnpTextModelHelper.h , how can right align this text to the right,
Or is there any other API call for this ?
I'm inserting text to textframe using InsertText() of SnpTextModelHelper.h , how can right align this text to the right,
Or is there any other API call for this ?
Consider creating a para style (or character style) that will have text right align set.
You can process kApplyTextStyleCmdBoss to apply a style.
Use IApplyStyleData and IRangeData(for text range)
Using IApplyStyleData you should set the style UID.
data->Set(strandClassID, styleUID)
strandClassID = kCharAttrStrandBoss or kParaAttrStrandBoss
styleUID = Your para or char style UID
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.