当前位置:网站首页>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 doBe 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 .
边栏推荐
- STC 32位8051单片机开发实例教程 二 I/O工作模式及其配置
- Redis installation and startup in Windows environment (background startup)
- C#聯合halcon應用——大華相機采集類
- 有意思了!数据库也搞Serverless!
- SwiftUI 4 新功能大全之 Toggle与 Mixed Toggle 多个绑定组件
- 渗透工具-TrustedSec 公司的渗透测试框架 (PTF)
- STC 32-bit 8051 single chip microcomputer development example tutorial three program compilation setting and download
- 强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
- 【无标题】
- Sum the amount
猜你喜欢
![[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached](/img/50/926cc5bce83f8b195b3e2072b656bf.jpg)
[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached

漏洞复现-.Net-ueditor上传

RichView TRVDocParameters 页面参数设置

Review the collection container again

How to use console Log print text?

Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road

MYSLQ十种锁,一篇文章带你全解析

How to turn off the boot auto start software in win11

Flask 常用组件

墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
随机推荐
牛客编程题--必刷101之字符串(高效刷题,举一反三)
C#聯合halcon應用——大華相機采集類
Set object value changes null value object
qobject_cast用法
C#联合halcon应用——大华相机采集类
想得到股票开户的优惠链接,如何得知?在线开户是安全么?
cocoaPods 添加成功后,导入不了头文件或者not found file 报错
Arduino Stepper库驱动28BYJ-48步进电机测试程序
【多线程】 实现单例模式 ( 饿汉、懒汉 ) 实现线程安全的单例模式 (双重效验锁)
再回顾集合容器
实例讲解将Graph Explorer搬上JupyterLab
Related concepts of cookies and sessions
Develop those things: easycvr platform adds playback address authentication function
Oracle physical architecture
DS Transunet:用于医学图像分割的双Swin-Transformer U-Net
Anaconda installs the virtual environment to the specified path
Image acquisition and playback of coaxpress high speed camera based on pxie interface
Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
Source code series of authentic children -inheritablethreadlocal (line by line source code takes you to analyze the author's ideas)