valuededitor.cs
来自「ASP.NET简洁论坛源代码 这是一个简单的论坛」· CS 代码 · 共 79 行
CS
79 行
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using NetFocus.Web.Core;
namespace NetFocus.Web.Applications.Forum
{
public class ValuedEditor : SkinedControl, IValuedControl
{
private ITextEditor editor;
private Unit width;
private Unit height;
public string Value
{
get
{
EnsureChildControls();
return editor.Text;
}
set
{
EnsureChildControls();
editor.Text = value;
}
}
public override Unit Height
{
set
{
height = value;
}
get
{
return height;
}
}
public override Unit Width
{
set
{
width = value;
}
get
{
return width;
}
}
protected override void AttachChildControls()
{
editor = (ITextEditor)FindControl("editor");
if (!Page.IsPostBack && !AjaxManager.IsCallBack)
{
editor.Width = width;
editor.Height = height;
}
}
public string EditorUniqueID
{
get
{
return ((Control)editor).UniqueID;
}
}
public string EditorClientID
{
get
{
EnsureChildControls();
return ((Control)editor).ClientID;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?