NSDictionary(DTCoreText) Category Reference
| Declared in | NSDictionary+DTCoreText.h |
Instance Methods
backgroundColor
Retrieves the background color. On iOS as UIColor, on Mac as NSColor. This supports both the DT as well as the NS/UIKit method of specifying the color. If no background color is defined in the receiver then nil is returned
- (DTColor *)backgroundColorReturn Value
The platform-specific color defined for the background, or nil if none is defined
Declared In
NSDictionary+DTCoreText.hfontDescriptor
Retrieves the DTCoreTextFontDescriptor from the receiver’s attributes. This supports both CTFont as well as UIFont as a possible representation of the text’s font.
- (DTCoreTextFontDescriptor *)fontDescriptorReturn Value
The font descriptor
Declared In
NSDictionary+DTCoreText.hforegroundColor
Retrieves the foreground color. On iOS as UIColor, on Mac as NSColor. This supports both the CT as well as the NS/UIKit method of specifying the color. If no foreground color is defined in the receiver then black is assumed.
- (DTColor *)foregroundColorReturn Value
The platform-specific color defined for the foreground
Declared In
NSDictionary+DTCoreText.hhasAttachment
Whether the receiver’s attributes contain a DTTextAttachment
- (BOOL)hasAttachmentReturn Value
YES if ther is an attachment
Declared In
NSDictionary+DTCoreText.hheaderLevel
The header level of the receiver
- (NSUInteger)headerLevelReturn Value
The header level (1-6) or 0 if no header level is set
Declared In
NSDictionary+DTCoreText.hisBold
Whether the font in the receiver’s attributes is bold.
- (BOOL)isBoldReturn Value
YES if the text has a bold trait
Declared In
NSDictionary+DTCoreText.hisItalic
Whether the font in the receiver’s attributes is italic.
- (BOOL)isItalicReturn Value
YES if the text has an italic trait
Declared In
NSDictionary+DTCoreText.hisStrikethrough
Whether the receiver’s attributes contains strike-through.
- (BOOL)isStrikethroughReturn Value
YES if the text is strike-through
Declared In
NSDictionary+DTCoreText.hisUnderline
Whether the receiver’s attributes contains underlining.
- (BOOL)isUnderlineReturn Value
YES if the text is underlined
Declared In
NSDictionary+DTCoreText.hkerning
The text kerning value
- (CGFloat)kerningReturn Value
the kerning value
Declared In
NSDictionary+DTCoreText.hparagraphStyle
Retrieves the DTCoreTextParagraphStyle from the receiver’s attributes. This supports both CTParagraphStyle as well as NSParagraphStyle as a possible representation of the text’s paragraph style.
- (DTCoreTextParagraphStyle *)paragraphStyleReturn Value
The paragraph style
Declared In
NSDictionary+DTCoreText.h