ControlSkinDelegate 委托

定义

表示一种方法,该方法可将正确的控件外观应用于指定控件。Represents the method that applies the correct control skin to the specified control.

public delegate System::Web::UI::Control ^ ControlSkinDelegate(Control ^ control);
public delegate System.Web.UI.Control ControlSkinDelegate(Control control);
type ControlSkinDelegate = delegate of Control -> Control
Public Delegate Function ControlSkinDelegate(control As Control) As Control 

参数

control
Control

要向其应用主题外观的 ControlThe Control to which to apply the theme skin.

返回值

Control

传递给方法并应用了控件外观的 ControlThe Control that was passed to the method, with a control skin applied.

继承
ControlSkinDelegate

注解

页面和控件开发人员不会直接ControlSkinDelegate使用ControlSkin、或PageTheme类。Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly. ASP.NET 页框架在内部使用这些类将 ASP.NET 主题中定义的服务器端属性和级联样式表定义应用到特定类型的控件。These classes are used internally by the ASP.NET page framework to apply server- side properties and cascading style sheet definitions that are defined in ASP.NET themes and control skin files to specific types of controls.

委托与类ControlSkin的方法相关联。 ApplySkin ControlSkinDelegateThe ControlSkinDelegate delegate is associated with the ApplySkin method of the ControlSkin class. 类表示 ASP.NET 控件外观, 它是由PageTheme对象表示的 ASP.NET 主题的一个组件。 ControlSkinThe ControlSkin class represents an ASP.NET control skin, which is a component of an ASP.NET theme represented by a PageTheme object. 有关 ASP.NET 主题的详细信息, 请参阅ASP.NET 主题和外观For more information about ASP.NET themes, see ASP.NET Themes and Skins.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅