Esempio n. 1
0
 public virtual void ReplaceRangeRTFD(NSRange aRange, NSData rtfdData)
 {
     this.ReplaceCharactersInRangeRTFD(aRange, rtfdData);
 }
Esempio n. 2
0
        public virtual void RemoveObjectsInRange(NSRange aRange)
        {
            uint i;
            uint s = aRange.Location;
            uint c = (uint)this.Count;

            i = aRange.Location + aRange.Length;

            if (c < i)
                i = c;

            if (i > s)
            {
                while (i-- > s)
                {
                    this.RemoveObjectAtIndex(i);
                }
            }
        }
Esempio n. 3
0
 public virtual void ReplaceRange(NSRange aRange, NSString aString)
 {
     this.ReplaceCharactersInRange(aRange, aString);
 }
Esempio n. 4
0
 public virtual void ReplaceCharactersInRangeRTFD(NSRange aRange, NSData rtfData)
 {
     NSDictionary dict = (NSDictionary)NSDictionary.Alloc().Init();
     NSAttributedString attr = (NSAttributedString)NSAttributedString.Alloc().InitWithRTFD(rtfData, ref dict);
     this.ReplaceCharactersInRange(aRange, attr);
 }
Esempio n. 5
0
 public virtual void ReplaceCharactersInRange(NSRange aRange, NSAttributedString attrString)
 {
 }
Esempio n. 6
0
 public virtual void ReplaceCharactersInRange(NSRange aRange, NSString aString)
 {
 }
Esempio n. 7
0
        public virtual bool ScanUpToCharactersFromSet(NSCharacterSet stopSet, ref NSString stringValue)
        {
            uint saveScanLocation = _scanLocation;
            uint start;

            if (!SkipToNextField())
                return false;

            start = _scanLocation;
            while (_scanLocation < _string.Length)
            {
                if (stopSet.CharacterIsMember(_string[_scanLocation]))
                    break;
                _scanLocation++;
            }

            if (_scanLocation == start)
            {
                _scanLocation = saveScanLocation;
                return false;
            }

            NSRange range = new NSRange();
            range.Location = start;
            range.Length = _scanLocation - start;
            stringValue = _string.SubstringWithRange(range);

            return true;
        }