关闭

CTParagraphStyle的属性

标签: 段落属性对齐方式
692人阅读 评论(0) 收藏 举报
分类:

1、段落样式定义:

 kCTParagraphStyleSpecifierAlignment = 0,                 //对齐属性  
 kCTParagraphStyleSpecifierFirstLineHeadIndent = 1,       //首行缩进  
 kCTParagraphStyleSpecifierHeadIndent = 2,                //段头缩进  
 kCTParagraphStyleSpecifierTailIndent = 3,                //段尾缩进  
 kCTParagraphStyleSpecifierTabStops = 4,                  //制表符模式  
 kCTParagraphStyleSpecifierDefaultTabInterval = 5,        //默认tab间隔  
 kCTParagraphStyleSpecifierLineBreakMode = 6,             //换行模式  
 kCTParagraphStyleSpecifierLineHeightMultiple = 7,        //多行高  
 kCTParagraphStyleSpecifierMaximumLineHeight = 8,         //最大行高  
 kCTParagraphStyleSpecifierMinimumLineHeight = 9,         //最小行高  
 kCTParagraphStyleSpecifierLineSpacing = 10,              //行距   
 kCTParagraphStyleSpecifierParagraphSpacing = 11,         //段落间距  在段的未尾(Bottom)加上间隔,这个值为负数。  
 kCTParagraphStyleSpecifierParagraphSpacingBefore = 12,   //段落前间距 在一个段落的前面加上间隔。TOP  
 kCTParagraphStyleSpecifierBaseWritingDirection = 13,     //基本书写方向  
 kCTParagraphStyleSpecifierMaximumLineSpacing = 14,       //最大行距  
 kCTParagraphStyleSpecifierMinimumLineSpacing = 15,       //最小行距  
 kCTParagraphStyleSpecifierLineSpacingAdjustment = 16,    //行距调整  
 kCTParagraphStyleSpecifierCount = 17,        //  

2、对齐属性

kCTLeftTextAlignment = 0,                //左对齐
kCTRightTextAlignment = 1,               //右对齐
kCTCenterTextAlignment = 2,              //居中对齐
kCTJustifiedTextAlignment = 3,           //文本对齐
kCTNaturalTextAlignment = 4              //自然文本对齐


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:272239次
    • 积分:5705
    • 等级:
    • 排名:第4842名
    • 原创:304篇
    • 转载:10篇
    • 译文:0篇
    • 评论:84条
    最新评论