温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:LiveBlog v1.0测试版源码
当前文件:
LiveBlog/LiveBlog.Web/Admin/Editor.ascx.cs,打开代码结构图
LiveBlog/LiveBlog.Web/Admin/Editor.ascx.cs,打开代码结构图1using System; 2
using System.Web; 3
using System.Web.UI; 4
using System.Web.UI.WebControls; 5
6
public partial class admin_Editor : System.Web.UI.UserControl 7
{ 8
public string Text 9
{ 10
get { return txtContent.Text; } 11
set { txtContent.Text = value; } 12
} 13
14
public short TabIndex 15
{ 16
get { return txtContent.TabIndex; } 17
set { txtContent.TabIndex = value; } 18
} 19
20
private Unit _editHeight; 21
public Unit Height 22
{ 23
get { return _editHeight; } 24
set { _editHeight = value; } 25
} 26
27
private Unit _editWidth; 28
public Unit Width 29
{ 30
get { return _editWidth; } 31
set { _editWidth = value; } 32
} 33
34
protected void Page_Load(object sender, EventArgs e) 35
{ 36
txtContent.Width = Width; 37
txtContent.Height = Height; 38
} 39
}





}
}