Class NSTextRange

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class NSTextRange
extends NSObject
Since:
Available in iOS 15.0 and later.
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
    • getLocation

      public NSTextLocation getLocation()
    • getEndLocation

      public NSTextLocation getEndLocation()
    • init

      protected long init​(NSTextLocation location, NSTextLocation endLocation)
    • init

      protected long init​(NSTextLocation location)
    • isEqualToTextRange

      public boolean isEqualToTextRange​(NSTextRange textRange)
    • containsLocation

      public boolean containsLocation​(NSTextLocation location)
    • containsRange

      public boolean containsRange​(NSTextRange textRange)
    • intersects

      public boolean intersects​(NSTextRange textRange)
    • textRangeByIntersectingWithTextRange

      public NSTextRange textRangeByIntersectingWithTextRange​(NSTextRange textRange)
    • textRangeByFormingUnionWithTextRange

      public NSTextRange textRangeByFormingUnionWithTextRange​(NSTextRange textRange)