📄 targetconverter.cs
字号:
using System;
using System.ComponentModel;
namespace System.Web.UI.WebControls
{
/// <summary>
/// Summary description for TargetConverter.
/// </summary>
public class TargetConverter : StringConverter
{
private static string[] targetValues;
private System.ComponentModel.TypeConverter.StandardValuesCollection values;
static TargetConverter()
{
string[] local0;
local0 = new String[5];
local0[0] = "_blank";
local0[1] = "_parent";
local0[2] = "_search";
local0[3] = "_self";
local0[4] = "_top";
TargetConverter.targetValues = local0;
}
public TargetConverter() : base()
{
}
public virtual StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
if (this.values == null)
this.values = new StandardValuesCollection(TargetConverter.targetValues);
return this.values;
}
public virtual bool GetStandardValuesExclusive(ITypeDescriptorContext context)
{
return false;
}
public virtual bool GetStandardValuesSupported(ITypeDescriptorContext context)
{
return true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -