📄 htmltablecellcollection.cs
字号:
using System;
using System.Collections;
using System.Web.UI;
namespace System.Web.UI.HtmlControls
{
/// <summary>
/// Summary description for HtmlTableCellCollection.
/// </summary>
//.custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute:
public sealed class HtmlTableCellCollection : IEnumerable,ICollection
{
private System.Web.UI.HtmlControls.HtmlTableRow owner;
internal HtmlTableCellCollection(HtmlTableRow owner) : base()
{
this.owner = owner;
}
public void Add(HtmlTableCell cell)
{
this.Insert(-1, cell);
}
public void Clear()
{
if (this.owner.HasControls())
this.owner.Controls.Clear();
}
public void CopyTo(Array array, int index)
{
IEnumerator local0;
local0 = this.GetEnumerator();
while (local0.MoveNext())
{
index = index + 1;
array.SetValue(local0.Current, index);
}
}
public IEnumerator GetEnumerator()
{
return this.owner.Controls.GetEnumerator();
}
public void Insert(int index, HtmlTableCell cell)
{
this.owner.Controls.AddAt(index, cell);
}
public void Remove(HtmlTableCell cell)
{
this.owner.Controls.Remove(cell);
}
public void RemoveAt(int index)
{
this.owner.Controls.RemoveAt(index);
}
public int Count
{
get
{
if (this.owner.HasControls())
return this.owner.Controls.Count;
return 0;
}
}
public bool IsReadOnly
{
get
{
return false;
}
}
public bool IsSynchronized
{
get
{
return false;
}
}
public HtmlTableCell this[int index]
{
get
{
return (HtmlTableCell) this.owner.Controls[index];
}
}
public object SyncRoot
{
get
{
return this;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -