ITagCollection

ITagCollection interface

表示标签的集合(用户定义的字符串对)

public interface ITagCollection : IGenericCollection<KeyValuePair<string, string>>

特性

姓名描述
Item { get; set; }返回或设置标签的键值对。

方法

姓名描述
Add(string, string)向集合添加新标签。
Clear()从集合中删除所有标签。
Contains(string)确定集合是否包含特定名称。
GetNameByIndex(int)返回指定索引处标签的键。
GetNamesOfTags()返回标签的名称。
GetValueByIndex(int)返回指定索引处的标签值。
IndexOfName(string)返回集合中指定键的从零开始的索引。
Remove(string)从集合中删除具有指定名称的标签。
RemoveAt(int)删除指定索引处的标签。

也可以看看