SortedDictionary
简介:创建有序字典对象
原型:Function SortedDictionary([StringCompareMode As StringCompareModeEnum], [UniqueKeys As Boolean = True]) As cSortedDictionary
方法
Add()
原型:Sub Add(Key, [Item])
Count()
原型:Function Count() As Long
Exists()
原型:Function Exists(Key) As Boolean
ItemExists()
原型:Function ItemExists(ItemValue, [FoundItemIndex As Long], [StringCompareMode As VbCompareMethod]) As Boolean
Remove()
原型:Sub Remove(Key)
RemoveAll()
原型:Sub RemoveAll()
RemoveByIndex()
原型:Sub RemoveByIndex(IdxZeroBased As Long)
SetStringCompareFlags()
原型:Sub SetStringCompareFlags(Flags As CmpFlags, [LangID As LangIDs], [SortID As SortIDs = SORT_DEFAULT])
属性
IndexByKey
原型:Property IndexByKey(Key, [Force_EvenIfNonExistent As Boolean]) As Long
Item
原型:Property Item(Key) 缺省
ItemByIndex
原型:Property ItemByIndex(IdxZeroBased As Long)
KeyByIndex
原型:Property KeyByIndex(IdxZeroBased As Long) 只读
StringCompareMode
原型:Property StringCompareMode As StringCompareModeEnum
UniqueKeys
原型:Property UniqueKeys As Boolean