Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ComponentModel.​Design.​IReferenceService

Assembly: System.ComponentModel.TypeConverter

Provides an interface for obtaining references to objects within a project by name or type, obtaining the name of a specified object, and for locating the parent of a specified object within a designer project.

Methods

GetComponent​(object reference)
Gets the component that contains the specified component.
Returns The base <see cref="T:System.ComponentModel.IComponent" /> that contains the specified object, or <see langword="null" /> if no parent component exists.
reference The object to retrieve the parent component for.
string
GetName​(object reference)
Gets the name of the specified component.
Returns The name of the object referenced, or <see langword="null" /> if the object reference is not valid.
reference The object to return the name of.
object
GetReference​(string name)
Gets a reference to the component whose name matches the specified name.
Returns An object the specified name refers to, or <see langword="null" /> if no reference is found.
name The name of the component to return a reference to.
object[]
GetReferences​()
Gets all available references to project components.
Returns An array of all objects with references available to the <see cref="T:System.ComponentModel.Design.IReferenceService" /> .
object[]
GetReferences​(Type baseType)
Gets all available references to components of the specified type.
Returns An array of all available objects of the specified type.
baseType The type of object to return references to instances of.