Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTextListMBS class.
NSTextListMBS.Constructor(format as String, OptionsMask as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacBase Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
format: The marker format for the text list.
mask: The marker options for the text list. Values for mask are listed in Constants.
Returns an initialized text list.
The marker format is specified as a constant string, except for a numbering specifier, which takes the form {keyword}. The currently supported values for keyword include:
- box
- check
- circle
- diamond
- disc
- hyphen
- square
- lower-hexadecimal
- upper-hexadecimal
- octal
- lower-alpha or lower-latin
- upper-alpha or upper-latin
- lower-roman
- upper-roman
- decimal
Thus, for example, "({decimal})" would specify the format for a list numbered (1), (2), (3), and so on, and @"{upper-roman}" would specify the format for a list numbered I, II, III, IV, and so on. (All of these keywords are included in the Cascading Style Sheets level 3 specification.)
NSTextListMBS.copy as NSTextListMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacBase Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSTextListMBS.markerForItemNumber(ItemNum as Integer) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Text | MBS MacBase Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
itemNum: The ordinal position in the list whose computed marker value is desired.
Returns the computed maker value for itemNum.
Some examples using this method:
The items on this page are in the following plugins: MBS MacBase Plugin.