Ios-nsmutableparagraphstyle paragraph Style

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.