当前位置:网站首页>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 .
边栏推荐
- Sum the amount
- Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
- The large list set is divided into multiple small list sets in equal proportion
- 人脸识别系统 —— OpenCV人脸检测
- 2022/6/8-2022/6/12
- Tensorflow reports an error, could not load dynamic library 'libcudnn so. eight
- [exercise] HashSet
- 【多线程】 实现单例模式 ( 饿汉、懒汉 ) 实现线程安全的单例模式 (双重效验锁)
- Problems encountered in installing MySQL in docker Ubuntu container
-
猜你喜欢

3D panoramic model display visualization technology demonstration

Redis installation and startup in Windows environment (background startup)

Oracle physical architecture

牛客编程题--必刷101之字符串(高效刷题,举一反三)

Error in installing sharp

Interview question 1

Getting started with fastdfs

JS proxy

Flask 常用组件

Win11怎么关闭开机自启动软件
随机推荐
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
【C语言】详解 memset() 函数用法
Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
Win11怎么关闭开机自启动软件
C # joint Halcon application - Dahua camera acquisition class
开发那些事儿:EasyCVR平台添加播放地址鉴权功能
1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack
数据分析师听起来很高大上?了解这几点你再决定是否转型
MYSLQ十种锁,一篇文章带你全解析
Class loading mechanism
Source code series of authentic children -inheritablethreadlocal (line by line source code takes you to analyze the author's ideas)
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
ModSim基本使用(Modbus模拟器)
Interview question 1
[Blue Bridge Cup web] analysis of the real topic of the 13th Blue Bridge Cup web university group match in 2022
PHP获取微信小程序和小程序商店外链地址
RichView TRVDocParameters 页面参数设置