点击这里查看

常用ToolBar工具名称

ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu,
FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline,
Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink,
RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList,
NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete, Undo, Redo, Print, Save,
ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate,
InsertTime, WordClean, InsertImage, InsertTable, EditTable, InsertTableRowBefore,
InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter,
DeleteTableColumn, InsertForm, InsertForm, InsertTextBox, InsertTextArea,
InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv,
InsertImageFromGallery, Preview, SelectAll, EditStyle

简单使用方法 第二种方法

<Toolbars>

<FTB:Toolbar runat=“server“>

<FTB:工具名称 runat=“server“/>

</FTB:Toolbar></Toolbars>

第一种方法

在FreeTextBox中增加属性 ToolbarLayout

ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|
        bulletedlist,numberedlist"

名称中间用“,”隔开,用“|”分隔,用“;”新增一个Toolbar

第三种方法

在Page_Load事件中增加代码

Toolbar toolbar1 = new Toolbar();
    toolbar1.Items.Add(new ParagraphMenu());
    toolbar1.Items.Add(new FontSizesMenu());
    FreeTextBox1.Toolbars.Add(toolbar1);

Toolbar toolbar2 = new Toolbar();
    toolbar2.Items.Add(new Bold());
    toolbar2.Items.Add(new Italic());
    toolbar2.Items.Add(new Underline());
    toolbar2.Items.Add(new ToolbarSeparator());
    toolbar2.Items.Add(new BulletedList());
    toolbar2.Items.Add(new NumberedList());
FreeTextBox1.Toolbars.Add(toolbar2);

Toolbar toolbar3 = new Toolbar();
    StyleMenu styleMenu = new StyleMenu();
    styleMenu.Items.Add(new ToolbarListItem("Highlight","Highlight"));
    styleMenu.Items.Add(new ToolbarListItem("SmallCaps","smallcaps"));

toolbar3.Items.Add(styleMenu);

FreeTextBox1.Toolbars.Add(toolbar3);


 

转帖 FreeTextBox 工具条相关推荐

  1. [Android]搜索工具条

    直接给效果图: 由效果图,搜索工具条具备的功能有: 1.实现语音识别,获取关键字 2.EditText有文字输入时,应在该组件末尾显示文件删除按钮,即X符号. 3.EditText与其右边的搜索按钮无 ...

  2. 13_MFC工具条和状态栏

    MFC工具条和状态栏 Windows控制窗口 Windows (Windows95或者以上版本) 提供了系列通用控制窗口,其中包括工具条(ToolBar).状态栏(StatusBar).工具条提示窗口 ...

  3. [Eclipse]GEF入门系列(六、添加菜单和工具条)

    我发现一旦稍稍体会到GEF的妙处,就会很自然的被它吸引住.不仅是因为用它做出的图形界面好看,更重要的是,UI中最复杂和细微的问题,在GEF的设计中无不被周到的考虑并以适当的模式解决,当你了解了这些,完 ...

  4. 实战ALV OO技术实现添加工具条按钮

    REPORT  Z_ALV_ERIC. *定义使用图标,按钮使用 INCLUDE <ICON>. *定义事件类型 CLASS LCL_EVENT_RECEIVER DEFINITION D ...

  5. 苹果工具条_苹果发布iOS 13.4首个测试版:能让iPhone变身为车钥匙

    在距离之前的iOS 13.3.1正式版发布一周后,苹果又发布了iOS 13.4首个测试版.从目前已知的细节中来看,在最新的iOS 13.4测试版中,iOS 13.4似乎还支持CarKey功能,能让iP ...

  6. IE工具条不能自动显示

    IE工具条不能自动显示 Delphi / Windows SDK/API http://www.delphi2007.net/DelphiAPI/html/delphi_200611060937412 ...

  7. legend3---lavarel安装debugbar工具条

    legend3---lavarel安装debugbar工具条 一.总结 一句话总结: ` lavarel插件一般是composer官网下载,然后config/app.php中声明和加别名 ` 直接照官 ...

  8. VC6中工具条的新特色

      加入时间:01-1-8 下午 09:10:32 在Visual C++ 版本6中工具条的新特色 作者: Dave Schmitt 微软在www.microsoft.com/visualc已经推出V ...

  9. 菜单与工具条的同步 APP_STANDARD.SYNCHRONIZE

    初始情况下,菜单与工具条的状态是一致的,但程序中动态改变某一属性时,工具条并不能相应地改变,所以必须编写代码完成同步. 通过调用以下函数来完成同步: APP_STANDARD.SYNCHRONIZE ...

最新文章

  1. js控制表格隔行变色
  2. 170828、Eclipse Java注释模板设置详解以及版权声明
  3. linux汇编和x86汇编,linux平台学x86汇编(四):从“hello world!”开始
  4. Android Studio --- [学习笔记]Button、TextView、EditText
  5. 简述 Spring Cloud 是什么
  6. C#操作xml之xpath语法
  7. php使用mysql5和8的区别_mysql8.0和mysql5.7的区别是什么?
  8. Select网络模型下的简单CS实例
  9. 如何列出引用SQL Server中给定表的所有外键?
  10. AltTab 把 Windows 的 Alt+Tab 功能带到 macOS
  11. 人工智能+眼科疾病辅助诊断(相关信息搜集)
  12. [转]ETL模型设计
  13. 编译onnx-tensorrt产生libnvonnxparser.so
  14. win10计算机本地无法连接,Win10没有本地连接怎么办?
  15. 计算机科学概论第12版中文版
  16. PySide从实战开始学习系列(一)认识PySide
  17. 性能测试基础知识-测试指标(转载自阿里云)
  18. 我眼中的无影云桌面‖云桌面使用者角度
  19. 从大数据的角度看 房价一定会下跌
  20. 【R语言】结巴分词与词性提取(以“提取知乎问题标题的频繁词前100个形容词”实战为例)(3月25日学习笔记)

热门文章

  1. 沣东新城镐京遗址规划_潜力无限?沣东新城凭什么就成了热门?!
  2. 如何生成简单的BAT脚本
  3. matlab 数组显示图片,20.1.4 显示图像数据
  4. 带你学习DSP系列一:走进TMS320F28377
  5. 最近写了一个预测体彩3D的小软件
  6. php 当地天气预报,基于PHP的全国天气预报接口查询
  7. lua 报错:'=' expected near ' '
  8. 树莓派触摸屏连接方法(微雪7寸LCD)
  9. WebAssembly(WASM) 和云原生 | wasm和区块链
  10. JS上传文件file(formdata)