❤

C#版HTML编辑器控件源码

C#版HTML编辑器控件源码 免费

  • 项目类型C/S
  • 开发语言C#
  • 开发工具VS2022
  • 数据库无数据库
  • 文件大小641 KB
  • 更新时间2009-06-09
浏览 14280 次 收藏 7 次 下载 1445 次

项目介绍

项目参数

  • 项目类别:【网络应用】
  • 项目类型:C/S
  • 适合人群:菜鸟、进阶
  • 授权类型:免费版
  • 完整度:
  • 可二次开发程度:
  • 开发语言:C#
  • 数据库:无数据库
  • 文件大小:641KB
  • 相关网址: 【免费浏览】
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel

一、更新记录

1、更新日期:2024-09-11 00:00:00

2、更新内容:
 

一、源码描述
环境:VS2022 Winform

二、功能介绍
一个不错的Html编辑器控件源码,采用前面介绍的IE的命令标识符对.NET下的WebBrowser控件进行了扩展,使得它不仅可以作为一个Web浏览器,而且可以作为一个功能强大的Web编辑器。

使用命令标识符的基本方法是:
webBroser.Document.ExecCommand(
      string command,
      bool showUI,
      Object value
)

参数:command
要执行的命令的名称。有关命令的完整列表,请参见IE编程之“命令标识符”(Command Identifiers)介绍一文。
showUI:是否向用户显示命令特定的对话框或消息框。 
value:要使用该命令分配的值。并非适用于所有命令。
备注:ExecCommand 公开了大量命令,在 HtmlDocument 上没有为这些命令公开方法。使用 ExecCommand,可以插入新的 HTML 元素,选择文本和设置文本格式,以及清除缓存的任何身份验证凭据。 
示例
下面的代码示例基于用户当前选定的文本创建一个超链接。
//public void SnipSelected()
//{
//    if (webBrowser1.Document != null)
//    {
//        object o;
//        webBrowser1.Document.ExecCommand("Copy", false, ref o);
//        string selected = (string)o;
//        if (selected != null && selected.Length > 0)
//        {
//            MessageBox.Show("Selected text: " + selected);
//        }
//    }
//}

三、注意事项
ctrl+F5运行即可。


责任编辑:超级美少女

下载记录(Only Recent 100)

用户名 推荐指数 下载时间

项目评论

单击更换

评论列表

全部评论
  • 暂无评论 …

授权
免费
  • 完整的项目源码压缩包
已实名认证
0成交
1241在售
97%过审率
活跃于 4 Hours Ago 进入店铺 ›
微信扫码咨询