Name
ITypeDescriptorContext
Synopsis
This interface is implemented by classes to allow clients to discover information about the context in which the component is in use.
You can find the Container
that owns the
component, the Instance
of the object that
aggregates the component, and the
PropertyDescriptor
that describes the component.
This might typically be used by a custom
TypeConverter
that wishes to make a contextual
decision about how to deal with the conversion process.
public interface ITypeDescriptorContext : IServiceProvider { // Public Instance Properties public IContainer Container{get; } public object Instance{get; } public PropertyDescriptor PropertyDescriptor{get; } // Public Instance Methods public void OnComponentChanged(); public bool OnComponentChanging(); }
Returned By
System.Drawing.Design.PaintValueEventArgs.Context
Passed To
Multiple types
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.