C# Класс ReferencePathCollection, gert

Наследование: CollectionBase, ICustomTypeDescriptor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( ReferencePath, refPath ) : void

Adds the specified ReferencePath object to the collection.

If the path in refPath matches one already existing in the collection, the operation is silently ignored.

AddRange ( ICollection c ) : void

Adds the elements of an ICollection to the end of the collection.

Contains ( string path ) : bool

Determines whether the collection contains a specified path.

Path comparison is case-insensitive.

ReadXml ( XmlReader reader ) : void

Loads reference paths from an XMLReader.

Remove ( ReferencePath, refPath ) : void

Removes the first occurence of a specific ReferencePath from the collection.

Elements that follow the removed element move up to occupy the vacated spot and the indexes of the elements that are moved are also updated.

WriteXml ( XmlWriter writer ) : void

Saves reference paths to an XmlWriter.

this ( int index ) : ReferencePath,

Gets or sets the ReferencePath at the specified index.

Приватные методы

Метод Описание
GetProperties ( ) : PropertyDescriptorCollection
ICustomTypeDescriptor ( ) : AttributeCollection
ICustomTypeDescriptor ( ) : EventDescriptor
ICustomTypeDescriptor ( ) : EventDescriptorCollection
ICustomTypeDescriptor ( Attribute attributes ) : EventDescriptorCollection
ICustomTypeDescriptor ( ) : PropertyDescriptor
ICustomTypeDescriptor ( ) : PropertyDescriptorCollection
ICustomTypeDescriptor ( Attribute attributes ) : PropertyDescriptorCollection

Called to get the properties of this type. Returns properties with certain attributes. this restriction is not implemented here.

ICustomTypeDescriptor ( ) : String
ICustomTypeDescriptor ( ) : TypeConverter
ICustomTypeDescriptor ( PropertyDescriptor pd ) : object
ICustomTypeDescriptor ( Type editorBaseType ) : object

Описание методов

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

Adds the specified ReferencePath object to the collection.
If the path in refPath matches one already existing in the collection, the operation is silently ignored.
is a .
public Add ( ReferencePath, refPath ) : void
refPath ReferencePath, The to add to the collection.
Результат void

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

Adds the elements of an ICollection to the end of the collection.
is a .
public AddRange ( ICollection c ) : void
c ICollection The whose elements should be added to the end of the collection. /// The collection itself cannot be a .
Результат void

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

Determines whether the collection contains a specified path.
Path comparison is case-insensitive.
is a .
public Contains ( string path ) : bool
path string The path to locate in the collection.
Результат bool

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

Loads reference paths from an XMLReader.
public ReadXml ( XmlReader reader ) : void
reader XmlReader /// An open XmlReader positioned before or on the referencePaths element.
Результат void

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

Removes the first occurence of a specific ReferencePath from the collection.
Elements that follow the removed element move up to occupy the vacated spot and the indexes of the elements that are moved are also updated.
is a .
public Remove ( ReferencePath, refPath ) : void
refPath ReferencePath, The to remove from the collection.
Результат void

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

Saves reference paths to an XmlWriter.
public WriteXml ( XmlWriter writer ) : void
writer XmlWriter An open XmlWriter.
Результат void

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

Gets or sets the ReferencePath at the specified index.
is not a valid index /// in the collection. set value is a .
public this ( int index ) : ReferencePath,
index int The zero-based index of the to get or set.
Результат ReferencePath,