Show / Hide Table of Contents

Class ItemChainTag

Tag which triggers a recursive search through the AbstractItem.ModifyItem hook.
Recursion is by looking up the predecessor and successor items in Finder, and basing a search at their ItemChainTags.
Selected item is first nonredundant item in the sequence, or null (handled by AbstractItem) if all items are redundant.

Inheritance
object
Tag
ItemChainTag
Implements
IItemModifierTag
Inherited Members
Tag.Clone()
Tag.LoadOnce(TaggableObject)
Tag.UnloadOnce(TaggableObject)
Tag.Loaded
Tag.TagHandlingProperties
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: ItemChanger.Tags
Assembly: ItemChanger.dll
Syntax
[ItemTag]
public class ItemChainTag : Tag, IItemModifierTag

Constructors

View Source

ItemChainTag()

Declaration
public ItemChainTag()

Fields

View Source

predecessor

Declaration
public string? predecessor
Field Value
Type Description
string
View Source

successor

Declaration
public string? successor
Field Value
Type Description
string

Methods

View Source

GetItem(string)

Declaration
protected virtual AbstractItem GetItem(string name)
Parameters
Type Name Description
string name
Returns
Type Description
AbstractItem
View Source

Load(object)

Virtual method called on tags when their parent loads. The base method checks and throws an exception if the tag is already loaded.
This should not be called directly. Instead, use "LoadOnce" to load and set the Loaded property.

Declaration
public override void Load(object parent)
Parameters
Type Name Description
object parent
Overrides
Tag.Load(object)
Exceptions
Type Condition
InvalidOperationException

The tag is already loaded.

View Source

ModifyItem(GiveEventArgs)

Declaration
public void ModifyItem(GiveEventArgs args)
Parameters
Type Name Description
GiveEventArgs args
View Source

Unload(object)

Virtual method called on tags when their parent unloads. The base method checks and throws an exception if the tag is not loaded.
This should not be called directly. Instead, use "UnloadOnce" to unload and set the Loaded property.

Declaration
public override void Unload(object parent)
Parameters
Type Name Description
object parent
Overrides
Tag.Unload(object)
Exceptions
Type Condition
InvalidOperationException

The tag is not loaded.

Implements

IItemModifierTag

Extension Methods

Extensions.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX