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

以下属性是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. [改善Java代码]边界,边界,还是边界

    建议24:边界,边界,还是边界 import java.util.Scanner; public class Client { //一个会员拥有产品的最大数量 public final static ...

  2. [未完成]关于Oracle知识总结

    关于Oracle知识总结关于Oracle知识总结关于Oracle知识总结关于Oracle知识总结

  3. (转)TCP三次握手

    原文地址:http://www.cnblogs.com/rootq/articles/1377355.html TCP(Transmission Control Protocol) 传输控制协议 TC ...

  4. 改变xmind显示中文界面

    最近打算迁移到ubuntu系统做为主系统,打算使用xmind这个工具,因为我的ubuntu并没有使用简体中文,xmind是根据系统的语种来自动选择的,所以也直接为英文界面,实在使用不习惯,查到了这篇文 ...

  5. ajax开发模拟后端数据接口

    在做前端开发的时候,特别是一些业务逻辑集中在前端的开发中.我们经常需要自己来模拟获取到后台接口的数据.为什么要模拟?可能后台接口还没有开发完成,可能后台还没有数据返回,可能...等等原因.曾经,我也尝 ...

  6. HTTP - 条件请求

    当 HTTP 请求包含 If-XXX 这种样式的首部时,服务器会对附带的条件进行判断,只有判断指定条件为真,才会执行请求.这样的请求首部有五个,分别是 If-Modified-Since.If-Unm ...

  7. asp.net自定义控件

    回发星级控件 using System; using System.ComponentModel; using System.Web.UI; using System.Web.UI.WebContro ...

  8. 晒下自己App广告平台积分墙收入,顺便点评几个广告平台

    这是我之前发在爱开发App源码论坛的文章.分享了我从2011年到现在移动广告方面的收入和一些心得. 产品类型:FC.街机模拟器类App游戏 广告平台:万普世纪 广告形式:积分墙,用户先试玩几次,再玩需 ...

  9. Servlet之初识

    doHeader 用于处理HEADER请求doGet 用于处理GET请求,也可以自动的支持HEADER请求doPost 用于处理POST请求 doPut 用于处理PUT请求 doDelete 用于处理 ...

  10. crackme_zapline分析

    [破文标题]crackme_zapline 分析 [破文作者]CloAk [作者邮箱]@qq.com [作者主页] [破解工具]OD,... [破解平台]Windows --------------- ...