1: 父类
继承于: NSObject
2: 属性
//获取具有默认样式设置的NSParagraphStyle实例, 其值与 [[NSParagraphStyle alloc] init] 的结果相同
@property (class, readonly, copy, NS_NONATOMIC_IOSONLY) NSParagraphStyle *defaultParagraphStyle;
//行间距
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat lineSpacing;
//这一段的底部和下一段的顶部之间的距离(或下一段的"页眉", 如果有的话); 类似于页脚;
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat paragraphSpacing;
//对齐方式
@property (readonly, NS_NONATOMIC_IOSONLY) NSTextAlignment alignment;
////整段缩进(首行除外)
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat headIndent;
//
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat tailIndent;
//首行缩进距离
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat firstLineHeadIndent;
//最小行高
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat minimumLineHeight;
//最大行高
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat maximumLineHeight;
//换行模式
@property (readonly, NS_NONATOMIC_IOSONLY) NSLineBreakMode lineBreakMode;
//书写方向
@property (readonly, NS_NONATOMIC_IOSONLY) NSWritingDirection baseWritingDirection;
//
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat lineHeightMultiple;
//前一段的底部(或前一段的 "页脚", 如果有的话)和这段顶部之间的距离; 类似于页眉;
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat paragraphSpacingBefore;
//
@property (readonly, NS_NONATOMIC_IOSONLY) float hyphenationFactor;
//
@property (readonly,copy, NS_NONATOMIC_IOSONLY) NSArray<NSTextTab *> *tabStops;
//
@property (readonly, NS_NONATOMIC_IOSONLY) CGFloat defaultTabInterval;
//
@property (readonly, NS_NONATOMIC_IOSONLY) BOOL allowsDefaultTighteningForTruncation;
3: 方法
/**
返回指定语言的默认写入方向
*ISO语言区域格式指定的语言. 可以为nil, 返回从用户的默认数据库中派生的默认写入方向
*/
+ (NSWritingDirection)defaultWritingDirectionForLanguage:(nullable NSString *)languageName;
网友评论