C# Класс FullInspector.PropertyEditorChain

In Full Inspector, there are typically a large number of property editors that can be used for each type, for example, a user defined editor, then the abstract editor, then the reflected editor. PropertyEditorChain encapsulates this idea and makes it easy to retrieve the next editor that will be used.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetNextEditor ( IPropertyEditor editor ) : IPropertyEditor

Returns the next editor that will be used, or null if the given editor is either the last one or was not found in the chain.

HasNextEditor ( IPropertyEditor editor ) : bool

Returns true if there is another editor after the given one.

SkipUntilNot ( ) : IPropertyEditor

Returns the first property editor in this chain that is not an instance of any of the given types.

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

Метод Описание
AddEditor ( IPropertyEditor editor ) : void

Adds an editor to the end of this chain.

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

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

Returns the next editor that will be used, or null if the given editor is either the last one or was not found in the chain.
public GetNextEditor ( IPropertyEditor editor ) : IPropertyEditor
editor IPropertyEditor The editor that is currently being used.
Результат IPropertyEditor

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

Returns true if there is another editor after the given one.
public HasNextEditor ( IPropertyEditor editor ) : bool
editor IPropertyEditor
Результат bool

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

Returns the first property editor in this chain that is not an instance of any of the given types.
public SkipUntilNot ( ) : IPropertyEditor
Результат IPropertyEditor