Table of Contents

Class ComponentManager

Namespace
SharpPluginLoader.Core.Components
Assembly
SharpPluginLoader.Core.dll

Represents an instace of a cComponentManager.

public class ComponentManager : MtObject
Inheritance
ComponentManager
Inherited Members

Constructors

ComponentManager()

public ComponentManager()

ComponentManager(nint)

public ComponentManager(nint instance)

Parameters

instance nint

Properties

Root

The root component of this component manager.

public Component? Root { get; }

Property Value

Component

Methods

Find(MtDti, bool)

Finds a Component by its MtDti.

public Component? Find(MtDti dti, bool allowSubclass = false)

Parameters

dti MtDti

The MtDti of the component to find.

allowSubclass bool

Whether or not to allow subclasses of the specified DTI.

Returns

Component

The Component if found, otherwise null.

Find(string, bool)

Finds a Component by its MtDti.

public Component? Find(string name, bool allowSubclass = false)

Parameters

name string

The name of the component to find.

allowSubclass bool

Whether or not to allow subclasses of the specified DTI.

Returns

Component

The Component if found, otherwise null.