📄 typecontrolidconverter.cs
字号:
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web;
using System.Web.UI.WebControls;
namespace AjaxControlToolkit.Design
{
/// <summary>
/// A simple derived class of ControlID converter that lets us filter based on a type.
///
/// This lets us have drop-downs in the property browser that pick a given Button or TextBox, etc.
/// </summary>
/// <typeparam name="T"></typeparam>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1706:ShortAcronymsShouldBeUppercase", Justification="Following ASP.NET AJAX pattern")]
public class TypedControlIDConverter<T> : ControlIDConverter
{
protected override bool FilterControl(Control control)
{
return typeof(T).IsInstanceOfType(control);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -