Home >Backend Development >C#.Net Tutorial >What are extension provider components in C#?
In order to provide properties to other components, an extension provider is required. Let's consider an example of the TooTtip component.
You add this component to the form. This will set a ToolTip property for each control. The same property is not under the compromised PropertyGrid control.
myTooltip1.SetToolTip(btn1, "This is ToolTip!");
Let's see how to implement the extension provider component -
First, define a component -
public class MyExtender : IExtenderProvider {...}
IExtenderProvider definition -
public interface IExtenderProvider { bool newExtend(object extendeNew); }
Now you need Implement newExtend method. What this does is return true for each related component or control.
The above is the detailed content of What are extension provider components in C#?. For more information, please follow other related articles on the PHP Chinese website!