// Overrides required for drag and drop public override bool WriteRows(NSTableView tableView, Foundation.NSIndexSet rowIndexes, NSPasteboard pboard) { NSData data = NSKeyedArchiver.ArchivedDataWithRootObject(rowIndexes); pboard.DeclareTypes(new string[] { DungeonToolsConstants.ECOUNTER_INITIATIVE_DRAG_DROP_TYPE }, this); pboard.SetDataForType(data, DungeonToolsConstants.ECOUNTER_INITIATIVE_DRAG_DROP_TYPE); return(true); }
public void InsertObjects(TValue[] objects, NSIndexSet atIndexes) { if (objects == null) { throw new ArgumentNullException(nameof(objects)); } if (atIndexes == null) { throw new ArgumentNullException(nameof(atIndexes)); } if (objects.Length != atIndexes.Count) { throw new ArgumentOutOfRangeException("'" + nameof(objects) + "' and '" + nameof(atIndexes) + "' must contain the same number of elements"); } for (int i = 0; i < objects.Length; i++) { if (objects [i] == null) { throw new ArgumentNullException(nameof(objects) + "[" + i.ToString() + "]"); } } nuint idx = atIndexes.FirstIndex; for (int i = 0; i < objects.Length; i++) { if (i > 0) { idx = atIndexes.IndexGreaterThan(idx); } Insert(objects [i], (nint)idx); } }
public virtual void InsertObjects(AnyObject[] objects, NSIndexSet atIndexes) { }
public virtual void MoveObjectsAtIndexes(NSIndexSet indexes, int toIndex) { }
public virtual void ReplaceObjectsAtIndexes(NSIndexSet indexes, AnyObject[] withObjects) { }
public virtual void RemoveObjectsAtIndexes(NSIndexSet indexes) { }
public virtual void RemoveObserver(NSObject anObserver, NSIndexSet fromObjectsAtIndexes, string forKeyPath) { }
public virtual void AddObserver(NSObject anObserver, NSIndexSet toObjectsAtIndexes, string forKeyPath, NSKeyValueObservingOptions options, UnsafeMutablePointer context) { }
public virtual void RemoveIndexes(NSIndexSet indexSet) { }
public virtual void EnumerateObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Action <AnyObject, int, UnsafeMutablePointer <ObjCBool> > usingBlock) { }
public virtual NSIndexSet IndexesOfObjectsAtIndexes(NSIndexSet indexSet, NSEnumerationOptions options, Func <AnyObject, int, UnsafeMutablePointer <ObjCBool>, bool> passingTest) { return(default(NSIndexSet)); }
public virtual AnyObject[] ObjectsAtIndexes(NSIndexSet indexes) { return(default(AnyObject[])); }
public virtual bool ContainsIndexes(NSIndexSet indexSet) { return(default(bool)); }
public NSIndexSet(NSIndexSet indexSet) { }
public virtual bool IsEqualToIndexSet(NSIndexSet indexSet) { return(default(bool)); }
public override void ReloadData(Foundation.NSIndexSet rowIndexes, Foundation.NSIndexSet columnIndexes) { base.ReloadData(rowIndexes, columnIndexes); QueueColumnResize(); }
public virtual void RemoveObserver(NSObject observer, NSIndexSet fromObjectsAtIndexes, string forKeyPath, UnsafeMutablePointer context) { }
public virtual void AddIndexes(NSIndexSet indexSet) { }