当前位置:网站首页>RichView 文档中的 ITEM
RichView 文档中的 ITEM
2022-07-01 18:57:00 【lyhoo163】
RichView 文档中的 ITEM
一、ITEM对象
1、TCustomRVItemInfo是TRichView文档中所有项目的基本类型。
2、除TCustomRVItemInfo外,众多类型可以构成ITEM:


3、组成ITEM对象之间的继承关系

二、ITEM是构成文档的基本要素
1、Item是文档中的基本绘图单元
2、Item分为文本Item和非文本Item
3、Item在文档中,0至ItemCount-1序列中,又由于ITEN的ParaSytle值(相同),组成段落。
注意:组成段落的条件:

4、下列对象可以单独组成一个ITEM
·Text 文本
·Tabulators 制表位
·Pictures 图片
·Hot-Pictures 带超链接的图片
·Break 分页(占满整行的水平线)
·Controls Delphi/C++Builder控件
·Bullets 项目符号
·Hotspots 带超链接的项目符号
·Tables 表格
·List Markers 段落项目符号或编号
·Labels 不能换行的类似于文本的控件
·Numbered Sequences 编号序列
·Endnotes尾注
·Footnotes脚注
·Custom Item 自定义Item

5、Tag
每个Item都关联一个Tag值,旧版本中它是Integer类型的,新版本它是String类型。
Tag的功能就是方便索引的查找。
三、文档中的ITEM
1、文档是由ITEM组成。下图是一页文档,共有8个ITEM:

首行编号1是一个居中文本ITEM。
第一行编号2至4由三个ITEM构成一个段。2和4是文本,中间插入一个ITEMG。
第三行至第五行,编号5-7,都是一个ITEM,构成一个段落。
第六行,由是空串(换行),组成一个ITEM。
上述文档中,有8个ITEM,有6个段落。
2、获取ITEM的Count
property ItemCount: Integer;
实际操作:
for i := RichViewEdit1.ItemCount - 1 downto 0 do注意:
(1)在文档中,一定要分清ITEM,对于段落的理解,可以看成相同ParaStylesr ITEM队列。
(2)ITEN文本中,不能有CR和LF(#13和#10)字符(回车和换行)
TAB(#09)tab键字符、 #0字符(空字符)、 FF(#12)换页字符。这些字符,可以单独组建 一个ITEM。
四、加入ITEM主要方法
AddNL 添加一个文本项;
AddBreak 添加了断线(水平线);
AddBullet 添加bullet(图片来自ImageList);
AddHotspot 添加热点(图片来自ImageList -超文本链接);
AddPicture 添加图片;
AddHotPicture 增加图片-超文本链接;
AddControl 添加Delphi/ c++ Builder控件;
AddTab 添加制表机;
AddItem 用于追加条目的通用方法(通常用于表);
AddCheckpoint 添加与下一个添加的物品相关联的检查点。
五、修改ITEM
1、获取文本
procedure SetItemTextEd(ItemNo: Integer; const s: String);
procedure SetItemTextEdA(ItemNo: Integer; const s: TRVAnsiString);
procedure SetItemTextEdW(ItemNo: Integer; const s: TRVUnicodeString);2、设置文本
procedure SetItemTextEd(ItemNo: Integer; const s: String);
procedure SetItemTextEdA(ItemNo: Integer; const s: TRVAnsiString);
procedure SetItemTextEdW(ItemNo: Integer; const s: TRVUnicodeString);参数:
ItemNo Item的序号
S 文本字符
六、删除ITEM
procedure DeleteItems(FirstItemNo, Count: Integer);参数:
FirstItemNo 从0到ItemCount-1,删除的第一个ITEM。
Count 删除几个连续ITEM。
七、插入ITEM
procedure SetItemTextEd(ItemNo: Integer; const s: String);
procedure SetItemTextEdA(ItemNo: Integer; const s: TRVAnsiString);
procedure SetItemTextEdW(ItemNo: Integer; const s: TRVUnicodeString);八、其它应用
略。
边栏推荐
- Flask 常用组件
- [research data] observation on the differences of health preservation concepts among people in 2022 - Download attached
- Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
- 再回顾集合容器
- Win11怎么关闭开机自启动软件
- 振弦采集模块测量振弦传感器的流程步骤
- 2022/6/8-2022/6/12
- Difference between redo and undo
- ORA-01950
- windows环境 redis安装和启动(后台启动)
猜你喜欢

面试题篇一

全国职业院校技能大赛网络安全“splunk“详细配置

Example explanation: move graph explorer to jupyterlab

一个悄然崛起的国产软件,低调又强大!

Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?

HLS4ML报错The board_part definition was not found for tul.com.tw:pynq-z2:part0:1.0.

Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation

1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack

Object creation

1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包
随机推荐
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
[exercise] HashSet
tensorflow报错Could not load dynamic library ‘libcudnn.so.8
STC 32位8051单片机开发实例教程 三 程序编译设置与下载
EURA欧瑞E1000系列变频器使用PID实现恒压供水功能的相关参数设置及接线
How to use console Log print text?
为定时器和延时器等其它情况的回调函数绑定当前作用域的this
Hls4ml entry method
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
C#聯合halcon應用——大華相機采集類
math_利用微分算近似值
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
MYSLQ十种锁,一篇文章带你全解析
【蓝桥杯Web】2022年第十三届蓝桥杯Web大学组国赛真题解析
Hls4ml reports an error the board_ part definition was not found for tul. com. tw:pynq-z2:part0:1.0.
What if the win11 shortcut key switching input method doesn't respond? Shortcut key switching input method does not respond
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
How can a programmer grow rapidly
[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached