当前位置:网站首页>Items in richview documents
Items in richview documents
2022-07-01 20:02:00 【lyhoo163】
RichView In document ITEM
One 、ITEM object
1、TCustomRVItemInfo yes TRichView Basic types of all items in the document .
2、 except TCustomRVItemInfo Outside , Many types can form ITEM:
3、 form ITEM The inheritance relationship between objects
Two 、ITEM Is the basic element of a document
1、Item It is the basic drawing unit in the document
2、Item Divided into text Item And non text Item
3、Item In document ,0 to ItemCount-1 In sequence , And because of ITEN Of ParaSytle value ( identical ), Component segment fall .
Be careful : Component segment fall Conditions :
4、 The following objects can form a single ITEM
·Text Text
·Tabulators Tab stop
·Pictures picture
·Hot-Pictures Pictures with hyperlinks
·Break Pagination ( The horizontal line that fills the whole line )
·Controls Delphi/C++Builder Control
·Bullets Bullet
·Hotspots Bullets with hyperlinks
·Tables form
·List Markers Paragraph bullet or number
·Labels Text like controls that cannot wrap lines
·Numbered Sequences Numbering sequence
·Endnotes Endnote
·Footnotes footnote
·Custom Item Customize Item
5、Tag
Every Item All related One Tag value , In the old version, it is Integer Type of , The new version is String type .
Tag Its function is to facilitate the search of the index .
3、 ... and 、 In document ITEM
1、 The document is created by ITEM form . The following figure is a one page document , share 8 individual ITEM:
The first line number 1 Is a centered text ITEM.
The first line number 2 to 4 By three ITEM Form a segment .2 and 4 It's the text , Insert a... In the middle ITEMG.
Lines 3 to 5 , Number 5-7, It's all one ITEM, Form a paragraph .
Sixth elements , It's an empty string ( Line break ), Form a ITEM.
In the above document , Yes 8 individual ITEM, Yes 6 Paragraphs .
2、 obtain ITEM Of Count
property ItemCount: Integer;
Actual operation :
for i := RichViewEdit1.ItemCount - 1 downto 0 do
Be careful :
(1) In document , Be sure to distinguish ITEM, Understanding of paragraphs , It can be regarded as the same ParaStylesr ITEM queue .
(2)ITEN In the text , Can not have CR and LF(#13 and #10) character ( Carriage return and line change )
TAB(#09)tab Key character 、 #0 character ( Null character )、 FF(#12) Page feed character . These characters , Can be set up separately One ITEM.
Four 、 Join in ITEM The main method
AddNL Add a text item ;
AddBreak Added disconnection ( Level );
AddBullet add to bullet( The picture is from ImageList);
AddHotspot Add hotspots ( The picture is from ImageList - Hypertext links );
AddPicture Add images ;
AddHotPicture Add pictures - Hypertext links ;
AddControl add to Delphi/ c++ Builder Control ;
AddTab Add a tabulator ;
AddItem General method for appending entries ( Usually used for tables );
AddCheckpoint Add a checkpoint associated with the next added item .
5、 ... and 、 modify ITEM
1、 Get text
procedure SetItemTextEd(ItemNo: Integer; const s: String);
procedure SetItemTextEdA(ItemNo: Integer; const s: TRVAnsiString);
procedure SetItemTextEdW(ItemNo: Integer; const s: TRVUnicodeString);
2、 Set text
procedure SetItemTextEd(ItemNo: Integer; const s: String);
procedure SetItemTextEdA(ItemNo: Integer; const s: TRVAnsiString);
procedure SetItemTextEdW(ItemNo: Integer; const s: TRVUnicodeString);
Parameters :
ItemNo Item The serial number of
S Text character
6、 ... and 、 Delete ITEM
procedure DeleteItems(FirstItemNo, Count: Integer);
Parameters :
FirstItemNo from 0 To ItemCount-1, Delete the first ITEM.
Count Delete several consecutive ITEM.
7、 ... and 、 Insert ITEM
procedure SetItemTextEd(ItemNo: Integer; const s: String);
procedure SetItemTextEdA(ItemNo: Integer; const s: TRVAnsiString);
procedure SetItemTextEdW(ItemNo: Integer; const s: TRVUnicodeString);
8、 ... and 、 Other applications
A little .
边栏推荐
- Win11 how to hide the taskbar? Win11 method to hide the taskbar
- Class loading mechanism
- 开发那些事儿:EasyCVR集群设备管理页面功能展示优化
- 使用Zadig从0到1搭建持续交付平台
- 牛客编程题--必刷101之字符串(高效刷题,举一反三)
- 漏洞复现-.Net-ueditor上传
- Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
- [multithreading] lock strategy
- Summary of SQL aggregate query method for yyds dry goods inventory
- 实例讲解将Graph Explorer搬上JupyterLab
猜你喜欢
GC garbage collection
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
走进如心小镇,数智化变革连接“未来社区”
【无标题】
STC 32-bit 8051 single chip microcomputer development example tutorial II i/o working mode and its configuration
Solve the problem of slow or failed vscode download
Use Zadig to build a continuous delivery platform from 0 to 1
What if the win11 shortcut key switching input method doesn't respond? Shortcut key switching input method does not respond
3D panoramic model display visualization technology demonstration
Example explanation: move graph explorer to jupyterlab
随机推荐
有意思了!数据库也搞Serverless!
Hls4ml entry method
Solve the problem of slow or failed vscode download
STC 32位8051单片机开发实例教程 二 I/O工作模式及其配置
Tensorflow reports an error, could not load dynamic library 'libcudnn so. eight
全国职业院校技能大赛网络安全“splunk“详细配置
Understand the structure in C language in one article
Flask 常用组件
DS Transunet:用于医学图像分割的双Swin-Transformer U-Net
Unreal Engine packaging project
再回顾集合容器
Keras机器翻译实战
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
How to add transactions in JDBC
[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached
[Mysql]安装Mysql5.7
list分割成满足和不满足条件的集合(partitioningBy)
【C语言】详解 memset() 函数用法
qobject_cast用法
docker ubuntu容器中安装mysql遇到的问题