📄 strawpollcontrolbuilder.cs
字号:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Collections;
namespace PCSCustomWebControls
{
/// <summary>
/// Summary description for StrawPollControlBuilder.
/// </summary>
internal class StrawPollControlBuilder : ControlBuilder
{
public override Type GetChildControlType(string tagName, IDictionary attribs)
{
if (tagName.ToLower().EndsWith("candidate"))
return typeof(Candidate);
return null;
}
public override void AppendLiteralString(string s)
{
// Do nothing, to avoid embedded text being added to control
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -