当前位置:网站首页>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怎么关闭开机自启动软件
- Tensorflow reports an error, could not load dynamic library 'libcudnn so. eight
- PHP获取微信小程序和小程序商店外链地址
- GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
- STC 32位8051单片机开发实例教程 二 I/O工作模式及其配置
- Anaconda安装虚拟环境到指定路径
- Swiftui 4 new features complete toggle and mixed toggle multiple binding components
- JVM memory model
- Class loading mechanism
猜你喜欢
简单但现代的服务器仪表板Dashdot
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
Optimization of the problem that the request flow fails to terminate during page switching of easycvr cluster video Plaza
Detailed configuration of network security "Splunk" in national vocational college skills competition
Object creation
RichView 文档中的 ITEM
Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road
Arduino stepper library drive 28byj-48 stepper motor test program
Related concepts of cookies and sessions
走进如心小镇,数智化变革连接“未来社区”
随机推荐
Win11怎么关闭开机自启动软件
P2433 [deep foundation 1-2] primary school mathematics n in one
JVM memory model
docker ubuntu容器中安装mysql遇到的问题
C#聯合halcon應用——大華相機采集類
简单但现代的服务器仪表板Dashdot
MySQL reports an error can't create table 'demo01 tb_ Student‘ (errno: 150)*
ORA-01950
STC 32位8051单片机开发实例教程 二 I/O工作模式及其配置
今日群里分享的面试题
The large list set is divided into multiple small list sets in equal proportion
fastDFS入门
qobject_cast用法
[AI server setup] CUDA environment
C#联合halcon应用——大华相机采集类
Hls4ml entry method
Related concepts of cookies and sessions
Realize pyramids through JS (asterisk pyramid, palindrome symmetric digital pyramid)
走进如心小镇,数智化变革连接“未来社区”
Iframe 父子页面通信