MonoTouch.Dialog.Section.RemoveRange C# (CSharp) Метод

RemoveRange() публичный Метод

Removes a range of elements from the Section
public RemoveRange ( int start, int count ) : void
start int /// Starting position ///
count int /// Number of elements to remove from the section ///
Результат void
		public void RemoveRange (int start, int count)
		{
			RemoveRange (start, count, UITableViewRowAnimation.Fade);
		}

Same methods

Section::RemoveRange ( int start, int count, UITableViewRowAnimation anim ) : void

Usage Example

        public TrafficViewDialogViewController (TrafficUpdates tu, string origin, string destination ) : base (UITableViewStyle.Grouped, null)
        {
            string head = "Traffic Update";

            secOutput = new Section("Output");

            root = new RootElement (head) {
                secOutput
            };

            Origin = origin;
            Destination = destination;

            Root = root;
            dvc = new DialogViewController (root, true);
            var tap = new UITapGestureRecognizer ();
            tap.AddTarget (() =>{
                dvc.View.EndEditing (true);
            });
            dvc.View.AddGestureRecognizer (tap);

            tu.TrafficUpdate += Display;

            tap.CancelsTouchesInView = false;
            dvc.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Refresh, delegate {
                secOutput.RemoveRange(0, secOutput.Count);
                tu.Origin = Origin;
                tu.Destination = Destination;

                tu.RunSearch("", false, false);
            });

            AppDelegate.navigation.PushViewController (dvc, true);

            tu.Origin = Origin;
            tu.Destination = Destination;

            tu.RunSearch("", false, false);

        }