/*预定义字符属性的文本。如果钥匙不在字典,然后使用默认值,如下所述。 */

以下属性是IOS6的

NSVerticalGlyphFormAttributeName NS_AVAILABLE_IOS(6_0);   一个NSNumber包含一个整数的值。0表示水平文本。1表示垂直文本。如果没有指定,它可以按照上级的垂直方向设置。目前在iOS,它总是水平。任何其他的行为是未定义的值。

NSFontAttributeName NS_AVAILABLE_IOS(6_0);                 uifont,默认Helvetica(新)12

NSParagraphStyleAttributeName NS_AVAILABLE_IOS(6_0);       NSParagraphStyle, default defaultParagraphStyle 设置段落的

NSForegroundColorAttributeName NS_AVAILABLE_IOS(6_0);      UIColor, default blackColor  设置前景颜色

NSBackgroundColorAttributeName NS_AVAILABLE_IOS(6_0);      UIColor, default nil: no background  设置背景颜色

NSLigatureAttributeName NS_AVAILABLE_IOS(6_0);            包含整数的NSNumber, default 1: default 连写字符, 0: 非连写字符

NSKernAttributeName NS_AVAILABLE_IOS(6_0);                 NSNumber包含浮点值,在点量修改默认的字距调整。0指间距是不可用的。

NSStrikethroughStyleAttributeName NS_AVAILABLE_IOS(6_0);  包含整数的NSNumber, default 0: 没有删除线

NSUnderlineStyleAttributeName NS_AVAILABLE_IOS(6_0);       包含整数的NSNumber, default 0: 没有下划线

NSStrokeColorAttributeName NS_AVAILABLE_IOS(6_0);          UIColor, 默认是和前景色一致的 设置笔画的颜色

NSStrokeWidthAttributeName NS_AVAILABLE_IOS(6_0);          NSNumber包含浮点值, 在字体大小默认是百分之0: no stroke; 对单独的笔画是有利的,对充满的笔画模式是不利的 (在概述了文本的典型值是3)

NSShadowAttributeName NS_AVAILABLE_IOS(6_0);               NSShadow, 默认是没有阴影的

以下的属性是IOS7的

NSTextEffectAttributeName NS_AVAILABLE_IOS(7_0);           NSString, default nil: no text effect(影响)

NSAttachmentAttributeName NS_AVAILABLE_IOS(7_0);           NSTextAttachment, default nil 附件属性

NSLinkAttributeName NS_AVAILABLE_IOS(7_0);                 NSURL (preferred) or NSString

NSBaselineOffsetAttributeName NS_AVAILABLE_IOS(7_0);       NSNumber containing floating point value, in points; offset from baseline, default 0

NSUnderlineColorAttributeName NS_AVAILABLE_IOS(7_0);       UIColor, default nil: same as foreground color

NSStrikethroughColorAttributeName NS_AVAILABLE_IOS(7_0);   UIColor, default nil: same as foreground color

NSObliquenessAttributeName NS_AVAILABLE_IOS(7_0);          NSNumber containing floating point value; skew to be applied to glyphs, default 0: no skew

NSExpansionAttributeName NS_AVAILABLE_IOS(7_0);            NSNumber containing floating point value; log of expansion factor to be applied to glyphs, default 0: no expansion

NSWritingDirectionAttributeName NS_AVAILABLE_IOS(7_0);     NSArray of NSNumbers representing the nested levels of writing direction overrides as defined by Unicode LRE, RLE, LRO, and RLO characters.  The control characters can be obtained by masking NSWritingDirection and NSTextWritingDirection values.  LRE: NSWritingDirectionLeftToRight|NSTextWritingDirectionEmbedding, RLE: NSWritingDirectionRightToLeft|NSTextWritingDirectionEmbedding, LRO: NSWritingDirectionLeftToRight|NSTextWritingDirectionOverride, RLO: NSWritingDirectionRightToLeft|NSTextWritingDirectionOverride,

/****************** Attributes ********************/的更多相关文章

  1. Eclipse "Unable to install breakpoint due to missing line number attributes..."

    Eclipse 无法找到 该 断点,原因是编译时,字节码改变了,导致eclipse无法读取对应的行了 1.ANT编译的class Eclipse不认,因为eclipse也会编译class.怎么让它们统 ...

  2. 执行打的maven jar包时出现“Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes”

    Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for ...

  3. webapi filter过滤器中获得请求的方法详情(方法名,Attributes)

    public class GlobalActionFilter : ActionFilterAttribute { private string _requestId; public override ...

  4. .NET Attributes

    Attributes 特性      公共语言运行时允许添加类似关键字的描述声明,叫做attributes, 它对程序中的元素进行标注,如类型.字段.方法和属性等.Attributes和Microso ...

  5. 给iOS开发新手送点福利,简述文本属性Attributes的用法

    给iOS开发新手送点福利,简述文本属性Attributes的用法   文本属性Attributes 1.NSKernAttributeName: @10 调整字句 kerning 字句调整 2.NSF ...

  6. jQuery in action 3rd - Working with properties, attributes, and data

    properties properties 是 JavaScript 对象内在的属性,可以进行动态创建,修改等操作. attributes 指的是 DOM 元素标记出来的属性,不是实例对象的属性. 例 ...

  7. Unsupported configuration attributes: [FILE_UPLOAD]

    Caused by: java.lang.IllegalArgumentException: Unsupported configuration attributes: [FILE_UPLOAD] 情 ...

  8. Jade模板引擎(一)之Attributes

    目录: Attributes Boolean Attributes Style Attributes Class Attributes &Attributes Attributes jade中 ...

  9. ASP.NET MVC 使用带有短横线的html Attributes(转载)

    转载地址:http://www.nmtree.net/2013/10/25/asp-net-mvc-use-dash-in-html-attributes.html 情景再现 我们常常需要一个文本框来 ...

  10. Create and Use Custom Attributes

    http://www.codeproject.com/Articles/1811/Creating-and-Using-Attributes-in-your-NET-applicat Create a ...

随机推荐

  1. truncate与delete 、drop的区别

    注意事项 1.在oracle中数据删除后还能回滚是因为它把原始数据放到了undo表空间. 2.DML语句使用undo表空间,DDL语句不使用undo,  而delete是DML语句,truncate是 ...

  2. activity工作的使用

    一. 什么是工作流 以请假为例,现在大多数公司的请假流程是这样的 员工打电话(或网聊)向上级提出请假申请——上级口头同意——上级将请假记录下来——月底将请假记录上交公司——公司将请假录入电脑 采用工作 ...

  3. Adobe Edge Animate –修改Edge Commons Spotlight功能,使之能支持播放中国网站视频

    Adobe Edge Animate –修改Edge Commons Spotlight功能,使之能支持播放中国网站视频 版权声明: 本文版权属于 北京联友天下科技发展有限公司. 转载的时候请注明版权 ...

  4. CF Polycarpus' Dice (数学)

    Polycarpus' Dice time limit per test 1 second memory limit per test 256 megabytes input standard inp ...

  5. 关于线程池ThreadPoolExecutor使用总结

    本文引用自: http://blog.chinaunix.net/uid-20577907-id-3519578.html 一.简介 线程池类为 java.util.concurrent.Thread ...

  6. Exception与相关

    怎么写一个exception类, 直接抛出去,主要是写一个构造函数里面的Msg消息,这个可以提前写出来. try...catch..finally 一般都是一起的,try 中有异常执行语句, catc ...

  7. 实现Foreach遍历

    实现Foreach遍历的集合类,需要实现IEnumerable接口,泛型集合则需要实现IEnumerable<T>接口 using System; using System.Collect ...

  8. Cocos2d-x优化中图片优化

    在2D游戏中图片无疑是最为重要的资源文件,它会被加载到内存中转换为纹理,由GPU贴在精灵之上渲染出来.它能够优化的方面很多,包括:图片格式.拼图和纹理格式等,下面我们从这几个方面介绍一下图片和纹理的优 ...

  9. NodeJS安全设计:好吃的草莓味糖果,只给好朋友小红

    上一篇文章中,我们已经建立了一个有缓冲机制的文件服务器,能给客户端响应附件类型的文件,其实,就爱莲(iLinkIT)而言,NodeJS的模块做到这样也就已经可以了,因为使用的场景就是电脑和手机之间,与 ...

  10. 如何测量一个嵌入式Linux系统的功耗/power dissipation/power wastage/consumption

    参考: 1.Linux Circuit Software To Calculate Power Dissipation