18
<summary>To be added.</summary>
20
<format type="text/html">
21
<h2 class="jump">Overview</h2>
23
<para>The <c>NSMutableIndexSet</c> class represents a mutable collection of unique unsigned integers, known as <i>indexes</i> because of the way they are used. This collection is referred to as a <i>mutable index set</i>.</para>
24
<para>The values in a mutable index set are always sorted, so the order in which values are added is irrelevant.</para>
25
<para>You must not subclass the <c>NSMutableIndexSet</c> class.</para>
26
<format type="text/html">
27
<h2 class="jump">Tasks</h2>
29
<format type="text/html">
30
<h3 class="tasks">Adding Indexes</h3>
36
<see cref="M:MonoMac.Foundation.NSMutableIndexSet.Add(System.UInt32)" />
38
<format type="text/html">
39
<img data-abstract="Adds an index to the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
46
<see cref="M:MonoMac.Foundation.NSMutableIndexSet.Add(MonoMac.Foundation.NSIndexSet)" />
48
<format type="text/html">
49
<img data-abstract="Adds the indexes in an index set to the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
56
<format type="text/html">
57
<a href="Reference.html#//apple_ref/occ/instm/NSMutableIndexSet/addIndexesInRange:">- addIndexesInRange:</a>
60
<format type="text/html">
61
<img data-abstract="Adds the indexes in an index range to the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
66
<format type="text/html">
67
<h3 class="tasks">Removing Indexes</h3>
73
<see cref="M:MonoMac.Foundation.NSMutableIndexSet.Remove(System.UInt32)" />
75
<format type="text/html">
76
<img data-abstract="Removes an index from the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
83
<see cref="M:MonoMac.Foundation.NSMutableIndexSet.Remove(MonoMac.Foundation.NSIndexSet)" />
85
<format type="text/html">
86
<img data-abstract="Removes the indexes in an index set from the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
93
<see cref="M:MonoMac.Foundation.NSMutableIndexSet.Clear" />
95
<format type="text/html">
96
<img data-abstract="Removes the receiver’s indexes." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
103
<format type="text/html">
104
<a href="Reference.html#//apple_ref/occ/instm/NSMutableIndexSet/removeIndexesInRange:">- removeIndexesInRange:</a>
107
<format type="text/html">
108
<img data-abstract="Removes the indexes in an index range from the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
113
<format type="text/html">
114
<h3 class="tasks">Shifting Index Groups</h3>
120
<see cref="M:MonoMac.Foundation.NSMutableIndexSet.ShiftIndexes(System.UInt32,System.UInt32)" />
122
<format type="text/html">
123
<img data-abstract="Shifts a group of indexes to the left or the right within the receiver." src="../../../../../../Resources/Images/info_icon.jpg" class="tooltipicon" width="10" border="0" height="10" />
18
<summary>Represents a mutable collection of unique, unsigned integers (<see cref="T:System.UInt32" />). These integers are also known as indexes. </summary>
19
<remarks>NSMutableIndexSet sorts the integers as they are added, therefore the order in which integers are added is irrelevant.</remarks>
131
22
<Member MemberName=".ctor">
187
84
<param name="other">To be added.</param>
189
<para>Initializes an allocated <c><format type="text/html"><a href="Reference.html#//apple_ref/doc/uid/20002197-SW1">NSIndexSet</a></format></c> object with an index set.</para>
192
<para>This method is a designated initializer for <c><format type="text/html"><a href="Reference.html#//apple_ref/doc/uid/20002197-SW1">NSIndexSet</a></format></c>.</para>
193
<format type="text/html">
194
<h5 class="tight">Availability</h5>
198
<term>Available in iPhone OS 2.0 and later.</term>
85
<summary>Creates a new MSMutableIndexSet from an existing set.</summary>
86
<remarks>To be added.</remarks>
204
89
<Member MemberName=".ctor">
209
94
<AssemblyVersion>0.0.0.0</AssemblyVersion>
98
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
212
102
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
215
105
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
216
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
106
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
218
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When you invoke the constructor that takes the NSObjectFlag.Empty you taking advatnage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to you.</para>
219
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
220
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
221
<para>In general, if your constructors invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, you should instead chain to the proper constructor in your class. </para>
222
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
108
<para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
226
// The NSObjectFlag merely allocates the object and registers the
227
// C# class with the Objective-C runtime if necessary, but no actual
228
// initXxx method is invoked, that is done later in the constructor
230
// This is taken from MonoMac's source code:
232
[Export ("initWithFrame:")]
233
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
235
// Invoke the init method now.
236
var initWithFrame = new Selector ("initWithFrame:").Handle;
238
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
240
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
111
public class MyClass : BaseClass {
112
[Export ("initWithFoo:")]
113
public MyClass (string foo) : base (NSObjectFlag.Empty)
305
182
<Parameter Name="other" Type="MonoMac.Foundation.NSIndexSet" />
308
<param name="other">To be added.</param>
310
<para>Adds the indexes in an index set to the receiver.</para>
185
<param name="other">The existing set of indexes to add.</param>
186
<summary>Adds an existing set of indexes to this set.</summary>
187
<remarks>To be added.</remarks>
316
190
<Member MemberName="Add">
399
267
<Parameter Name="other" Type="MonoMac.Foundation.NSIndexSet" />
402
<param name="other">To be added.</param>
404
<para>Removes the indexes in an index set from the receiver.</para>
270
<param name="other">The set of indexes to remove.</param>
271
<summary>Removes the indexes specified in <paramref name="other" /> that exist in this set.</summary>
272
<remarks>To be added.</remarks>
410
275
<Member MemberName="Remove">
454
316
<Parameter Name="delta" Type="System.UInt32" />
457
<param name="startIndex">To be added.</param>
458
<param name="delta">To be added.</param>
460
<para>Shifts a group of indexes to the left or the right within the receiver.</para>
463
<para>The group of indexes shifted is made up by <i>startIndex</i> and the indexes that follow it in the receiver.</para>
464
<para>A left shift deletes the indexes in the range <c>(</c><i>startIndex</i><c>-</c><i>delta</i><c>,</c><i>delta</i><c>)</c> from the receiver.</para>
465
<para>A right shift inserts empty space in the range <c>(</c><i>indexStart</i><c>,</c><i>delta</i><c>)</c> in the receiver.</para>
466
<format type="text/html">
467
<h5 class="tight">Availability</h5>
471
<term>Available in iPhone OS 2.0 and later.</term>
319
<param name="startIndex">The staring index in which to begin the shift.</param>
320
<param name="delta">The amount and direction to move the indexes. A positive number will shift the indexes to the right, and a negative number will shift them to the left.</param>
321
<summary>Shifts a subset of indexes either left or right starting at the <paramref name="startIndex" /> by the amount specified in <paramref name="delta" />.</summary>
322
<remarks>To be added.</remarks>