Apple API:
ns_class_available(10_0, 6_0)@Interface nsmutableparagraphstyle:nsparagraphstyle@ property(ns_nonatomic_iosonly) cgfloat LineSpacing;@ Property(ns_nonatomic_iosonly) cgfloat paragraphspacing;@ Property(ns_nonatomic_iosonly) nstextalignment alignment;@ Property(ns_nonatomic_iosonly) cgfloat firstlineheadindent;@ Property(ns_nonatomic_iosonly) cgfloat headindent;@ Property(ns_nonatomic_iosonly) cgfloat tailindent;@ Property(ns_nonatomic_iosonly) Nslinebreakmode linebreakmode;@ Property(ns_nonatomic_iosonly) cgfloat minimumlineheight;@ Property(ns_nonatomic_iosonly) cgfloat maximumlineheight;@ Property(ns_nonatomic_iosonly) nswritingdirection basewritingdirection;@ Property(ns_nonatomic_iosonly) cgfloat lineheightmultiple;@ Property(ns_nonatomic_iosonly) cgfloat paragraphspacingbefore;@ Property(ns_nonatomic_iosonly) float hyphenationfactor;@ Property(null_resettable, Copy, ns_nonatomic_iosonly) nsarray<nstexttab *> *tabstops ns_ AVAILABLE (_0, 7_0) ;@ Property(ns_nonatomic_iosonly) cgfloat defaulttabinterval ns_available (_0, 7 _0) ;@ Property(ns_nonatomic_iosonly) BOOL allowsdefaulttighteningfortruncation ns_available (10 _11, 9_0) ;
The properties are briefly described:
//Nsparagraphstyleattributename paragraph style (set the first line. Line spacing. Alignment or something) see what you need to write aboutNsmutableparagraphstyle *paragraphstyle = [[Nsmutableparagraphstyle alloc] init]; Paragraphstyle.linespacing =Ten;//Line spacing of fontsParagraphstyle.firstlineheadindent =20.0f;//indent in first lineParagraphstyle.alignment = nstextalignmentjustified;//(justified) Text alignment: (left, middle, right, justified, natural)Paragraphstyle.linebreakmode = Nslinebreakbytruncatingtail;the contents of the//end section are as follows ... Way omitted ("... wxyz", "ABCD ...", "AB ... YZ ")Paragraphstyle.headindent = -;//Overall indent (except for the first row)Paragraphstyle.tailindent = -;//Paragraphstyle.minimumlineheight =Ten;//Minimum row heightParagraphstyle.maximumlineheight = -;//MAX row heightParagraphstyle.paragraphspacing = the;space between//segment and segmentParagraphstyle.paragraphspacingbefore =22.0f;///The Blank Space/* Distance between the bottom of the previous paragraph (or the end of its paragraphspacing, if any) and the Top of this paragraph. */Paragraphstyle.basewritingdirection = Nswritingdirectionlefttoright;//left-to-right writing direction (altogether?? Three types)Paragraphstyle.lineheightmultiple = the;/* Natural line height are multiplied by this factor (if positive) before being constrained by minimum and maximum line Height. */Paragraphstyle.hyphenationfactor =1;//hyphenation properties on iOS. The only supported values are 0 and 1, respectively
Ios-nsmutableparagraphstyle paragraph Style