📄 webpartbase.cs
字号:
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public class WebPartBase : UserControl, IWebPart
{
protected string _title = "[Generic Title]";
public string Title
{
get { return _title; }
set { _title = value; }
}
// Subtitle
protected string _subTitle = "";
public string Subtitle
{
get { return _subTitle; }
set { _subTitle = value; }
}
// Caption
protected string _caption = "[Generic Caption]";
public string Caption
{
get { return _caption; }
set { _caption = value; }
}
// Description
private string _description = "[Generic Description]";
public string Description
{
get { return _description; }
set { _description = value; }
}
// TitleUrl
private string _titleUrl = "http://msdn.microsoft.com/msdnmag";
public string TitleUrl
{
get { return _titleUrl; }
set { _titleUrl = value; }
}
// TitleIconImageUrl
private string _titleIconImageUrl = "img/star.GIF";
public string TitleIconImageUrl
{
get { return _titleIconImageUrl; }
set { _titleIconImageUrl = value; }
}
// CatalogIconImageUrl
private string _catalogIconImageUrl = "img/star.gif";
public string CatalogIconImageUrl
{
get { return _catalogIconImageUrl; }
set { _catalogIconImageUrl = value; }
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -