MonoTouch.Dialog.Section.Remove C# (CSharp) Method

Remove() public method

public Remove ( Element e ) : void
e Element
return void
		public void Remove (Element e)
		{
			if (e == null)
				return;
			for (int i = Elements.Count; i > 0;){
				i--;
				if (Elements [i] == e){
					RemoveRange (i, 1);
					return;
				}
			}
		}
		

Same methods

Section::Remove ( int idx ) : void

Usage Example

示例#1
0
        private void Delete(Element element, Section section)
        {
            var e = element as Gistacular.Elements.NameTimeStringElement;
            if (e == null || e.Tag == null)
                return;

            var gist = e.Tag as GistModel;
            if (gist == null)
                return;

            this.DoWork(() => {
                Application.Client.API.DeleteGist(gist.Id);

                InvokeOnMainThread(() => {
                    section.Remove(element);
                });
            });
        }
All Usage Examples Of MonoTouch.Dialog.Section::Remove