Objective C - Get alignment of a CTParagraphStyleRef?
I have a CTParagraphStyleRef
how can I determine the alig开发者_JAVA百科nment of this paragraph style?
Use the CTTextAlignment
its an enum defined as:
kCTLeftTextAlignment = 0,
kCTRightTextAlignment = 1,
kCTCenterTextAlignment = 2,
kCTJustifiedTextAlignment = 3,
kCTNaturalTextAlignment = 4
Here is the Apple Source
精彩评论