DekGenius.com
[ Team LiB ] Previous Section Next Section

ITypeDescriptorContext

System.ComponentModel (system.dll)interface

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

    [ Team LiB ] Previous Section Next Section