DTCSSListStyle Class Reference
| Inherits from | NSObject |
| Conforms to | NSCoding |
| Declared in | DTCSSListStyle.h |
Overview
This class is the equivalent of NSTextList on Mac with the added handling of the marker position.
Tasks
Getting Types from Strings
Creating List Styles
Working with CSS Styles
Working with Prefixes
Managing Item Numbering
Comparing Lists
Getting Information about Lists
-
– isOrdered -
inheritproperty -
typeproperty -
positionproperty -
imageNameproperty
Properties
imageName
The image name to use for the marker
@property (nonatomic, copy) NSString *imageNameDeclared In
DTCSSListStyle.hinherit
If the list style is inherited.
@property (nonatomic, assign) BOOL inheritDiscussion
@warn This is not implemented.
Declared In
DTCSSListStyle.hposition
The position of the marker in the prefix. See DTCSSListStylePosition for available positions.
@property (nonatomic, assign) DTCSSListStylePosition positionDeclared In
DTCSSListStyle.htype
The type of the text list. See DTCSSListStyleType for available types
@property (nonatomic, assign) DTCSSListStyleType typeDeclared In
DTCSSListStyle.hClass Methods
listStylePositionFromString:
Convert a string into a marker position.
+ (DTCSSListStylePosition)listStylePositionFromString:(NSString *)stringParameters
- string
The string to convert
Declared In
DTCSSListStyle.hlistStyleTypeFromString:
Convert a string into a list style type.
+ (DTCSSListStyleType)listStyleTypeFromString:(NSString *)stringParameters
- string
The string to convert
Declared In
DTCSSListStyle.hInstance Methods
initWithStyles:
Creates a list style from the passed CSS style dictionary
- (id)initWithStyles:(NSDictionary *)stylesParameters
- styles
A CSS style dictionary from which the construct a suitable list style
Declared In
DTCSSListStyle.hisEqualToListStyle:
Determine if another list style has equivalent settings. Note that this does not mean that they are identical, only that they look the same.
- (BOOL)isEqualToListStyle:(DTCSSListStyle *)otherListStyleParameters
- otherListStyle
The other list style to compare the receiver with
Return Value
YES if the other list style has the same values
Declared In
DTCSSListStyle.hisOrdered
Returns if the receiver is an ordered or unordered list
- (BOOL)isOrderedReturn Value
YES if the receiver is ordered, NO if it is unordered
Declared In
DTCSSListStyle.hprefixWithCounter:
Returns the prefix for lists of the receiver’s settings.
- (NSString *)prefixWithCounter:(NSInteger)counterParameters
- counter
The counter value to use for ordered lists.
Return Value
The prefix string to prepend to list items.
Declared In
DTCSSListStyle.hsetStartingItemNumber:
Sets the starting item number for the text list.
- (void)setStartingItemNumber:(NSInteger)itemNumParameters
- itemNum
The item number.
Discussion
The default value is 1. This value will be used only for ordered lists, and ignored in other cases.
Declared In
DTCSSListStyle.h