NSTextListMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
Returns an initialized text list.

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:


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
Creates a copy of the text list.

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
Returns the computed value for a specific ordinal position in the list.

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.


💬 Ask a question or report a problem