NSRangeMBS 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 NSRangeMBS class.

NSRangeMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an empty range.
Example
dim r as new NSRangeMBS
MsgBox r // {0, 0}

See also:

NSRangeMBS.Constructor(Location as UInt32, Length as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new range with the given values.

See also:

NSRangeMBS.Constructor(p as Ptr)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new instance using data at the pointer.

Make sure the pointer is valid and has the right data and size.

See also:

NSRangeMBS.Constructor(s as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new NSRange object using the given string.
Example
dim r as new NSRangeMBS("{3, 4}")
MsgBox r // {3, 4}

See also:

NSRangeMBS.Equal(other as NSRangeMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether two ranges are equal.

NSRangeMBS.Intersection(other as NSRangeMBS) as NSRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the intersection of the two ranges.

NSRangeMBS.LocationInRange(location as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the location is in the range.

NSRangeMBS.Operator_Convert as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Converts the object to string.
Example
dim r as new NSRangeMBS("{3, 4}")
MsgBox r // {3, 4}

NSRangeMBS.String as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the string representation of this range.
Example
dim r as new NSRangeMBS("{3, 4}")
MsgBox r.String // {3, 4}

NSRangeMBS.Union(other as NSRangeMBS) as NSRangeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates the union of two ranges.

The items on this page are in the following plugins: MBS Main Plugin.


💬 Ask a question or report a problem