Platforms to show: All Mac Windows Linux Cross-Platform
NSRangeMBS class
class, Cocoa,
MBS Real Studio CocoaBase Plugin
(NSBase),
class NSRangeMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This is the Cocoa class for a Range.
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: This is the Cocoa class for a Range.
- property Length as UInt32
- property Location as UInt32
- property MaxRange as UInt32
- method Constructor
- method Constructor(Location as UInt32, Length as UInt32)
- method Constructor(s as string)
- method Equal(other as NSRangeMBS) as boolean
- method Intersection(other as NSRangeMBS) as NSRangeMBS
- method LocationInRange(location as UInt32) as boolean
- method Operator_Convert as String
- method String as String
- method Union(other as NSRangeMBS) as NSRangeMBS
This class has no sub classes.
Some useful global functions for this class:
- NSMakeRangeMBS(location as UInt32, length as UInt32) as NSRangeMBS
Some methods using this class:
- NSAttributedStringMBS.attributeAtIndex(name as string, location as UInt64, inRange as NSRangeMBS) as variant
- NSAttributedStringMBS.attributeAtIndex2(name as string, location as UInt64, byref effectiveRange as NSRangeMBS) as variant
- NSAttributedStringMBS.attributeAtIndex2(name as string, location as UInt64, byref longestEffectiveRange as NSRangeMBS, inRange as NSRangeMBS) as variant
- NSAttributedStringMBS.attributedSubstringFromRange(range as NSRangeMBS) as NSAttributedStringMBS
- NSAttributedStringMBS.attributesAtIndex(location as UInt64, inRange as NSRangeMBS) as dictionary
- NSAttributedStringMBS.attributesAtIndex2(location as UInt64, byref range as NSRangeMBS) as dictionary
- NSAttributedStringMBS.attributesAtIndex2(location as UInt64, byref range as NSRangeMBS, inRange as NSRangeMBS) as dictionary
- NSCharacterSetMBS.characterSetWithRange(r as NSRangeMBS) as NSCharacterSetMBS
- NSLayoutManagerMBS.glyphRangeForTextContainer(container as NSTextContainerMBS) as NSRangeMBS
- NSLayoutManagerMBS.lineFragmentRectForGlyphAtIndex(glyphIndex as integer, byref effectiveRange as NSRangeMBS) as NSRectMBS
- NSLayoutManagerMBS.lineFragmentRectForGlyphAtIndex(glyphIndex as integer, byref effectiveRange as NSRangeMBS, withoutAdditionalLayout as boolean) as NSRectMBS
- NSLayoutManagerMBS.lineFragmentUsedRectForGlyphAtIndex(glyphIndex as integer, byref effectiveRange as NSRangeMBS) as NSRectMBS
- NSLayoutManagerMBS.lineFragmentUsedRectForGlyphAtIndex(glyphIndex as integer, byref effectiveRange as NSRangeMBS, withoutAdditionalLayout as boolean) as NSRectMBS
- NSLayoutManagerMBS.rangeOfNominallySpacedGlyphsContainingIndex(glyphIndex as integer) as NSRangeMBS
- NSLayoutManagerMBS.rectArrayForCharacterRange(charRange as NSRangeMBS, selCharRange as NSRangeMBS, container as NSTextContainerMBS, byref rectCount as integer) as NSRectMBS()
- NSLayoutManagerMBS.rectArrayForGlyphRange(glyphRange as NSRangeMBS, selGlyphRange as NSRangeMBS, container as NSTextContainerMBS, byref rectCount as integer) as NSRectMBS()
- NSMutableAttributedStringMBS.addAttribute(name as string, value as variant, range as NSRangeMBS)
- NSMutableAttributedStringMBS.addAttributes(attrs as Dictionary, range as NSRangeMBS)
- NSMutableAttributedStringMBS.deleteCharactersInRange(range as NSRangeMBS)
- NSMutableAttributedStringMBS.removeAttribute(name as string, range as NSRangeMBS)
- NSMutableAttributedStringMBS.replaceCharactersInRange(range as NSRangeMBS, attrString as NSAttributedStringMBS)
Some properties using for this class:
Some events for this class:
- NSTextViewMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
Some examples which use this class:
- /Cocoa/NSTextField Focus on KeyDown
- /Cocoa/NSTextView Selection
- /Cocoa/Spellcheck/NSSpellChecker Grammar
- /Cocoa/Spellcheck/SpellCheck like TextEdit
- /Cocoa/Spellcheck/SpellCheck RB
- /Cocoa/TextEdit MBS
- /CocoaBase/NSDictionary Conversion Test
- /Leopard/Cocoa Controls/TextView with events
- /Leopard/IKImageBrowser/IKImageBrowser Groups
The items on this page are in the following plugins: MBS Real Studio CocoaBase Plugin.
Links
MBS Real Studio Plugins