当前位置:网站首页>Richview table table alignment
Richview table table alignment
2022-07-24 19:45:00 【lyhoo163】
RichView Table Table alignment

RichView Table Table alignment , The key is two steps , One is ok 、 Column size and Cell Alignment of Chinese text .
One 、 The width of the column
table.Cells[0, 0].BestWidth := -10; // surface The best width of the unit
table.Cells[0, 1].BestWidth := -45; // surface The optimum width of the unit 45% Pay attention to negative numbers 100%
table.Cells[0, 2].BestWidth := -25; // A positive number is Pixel values
table.Cells[0, 3].BestWidth := -12;
table.Cells[0, 4].BestWidth := -8;
The above code , As a percentage of the document width , Is a more appropriate method .
Two 、 The height of the line
RichView The height of the line , In addition to code settings , It mainly integrates each of the whole line Cell Height , To show everything , Often with Cell The maximum value of medium height shall prevail .
In order to recognize , The height of each line is the same , You have to put every Cell The height of is basically the same ( Less than a certain value ).
3、 ... and 、Cell Documents
remember ,Cell Documents in , It's just one. TRichView.
towards Cell Add documentation methods to :
procedure AddNL(const s: String; StyleNo: Integer; ParaNo: Integer = -1;
const Tag: TRVTag=RVEMPTYAG);
Insert the attributes of the relevant text and paragraphs of the line , from StyleNo,ParaNo Appoint .
When Cell There is only one line of text in , Just set the same StyleNo,ParaNo that will do .( Front image )
The following figure , When Cell When Chinese text is multi line , yes , we have Cell A line of text , There are two lines of text , Specify the same StyleNo,ParaNo, Is to create Cell, The text is not centered .

The way to improve : stay Cell[0,1] in ,AddNL designated new ParaNo, stay SpaceBefore Properties of the , Add a height of half a character .
The effect is as follows :

Be careful :RichView Row height of table , In order to Cell The maximum value of , Others less than the maximum Cell, Add white space at the end , Similar to the top alignment :

This happens , Good idea , By adding blank lines , Or add line leading (SpaceBefore) solve .

That's the point. ,RichView And EXCEL Of Cell Easy to set up , Just set Cell Align center , that will do .
边栏推荐
- Sword finger offer 40. minimum number of K
- Environment preparation of Nacos configuration center
- Know typescript
- 01 | 开篇词:手把手教你搭建一个博客网站
- 存储类别
- Convolutional neural network CNN
- 02 | 环境准备:如何在windows下安装和配置一个基本的php开发环境?
- Machine learning_ Softmax function (multi classification problem)
- Common methods of string class
- Day 4 (item 1: household income and expenditure records)
猜你喜欢

PostgreSQL Elementary / intermediate / advanced certification examination (7.16) passed the candidates' publicity

Feature extraction tool transformer Bert

strlen函数剖析和模拟实现

day 3

02 | 环境准备:如何在windows下安装和配置一个基本的php开发环境?

Machine learning_ Softmax function (multi classification problem)

Meshlab & PCL ISS key points
思源笔记 v2.1.2 同步问题

Decision tree_ ID3_ C4.5_ CART

Emergency lighting design of large stadiums and gymnasiums
随机推荐
PostgreSQL weekly news - July 13, 2022
Day 6 (array example)
PostgreSQL Elementary / intermediate / advanced certification examination (7.16) passed the candidates' publicity
Flink window & time principle
Biopharmaceutical safety, power supply and production guarantee
Is the incremental update of SQL Server database identified according to the where clause? Can't do stream update? Each table should
Zooinspector Download
870. Approximate number
SSL Error: Unable to verify the first certificate
C language implementation of raii
Virtual machine win7 system installation vmtool
Qt| control qscrollbar display position
Data transmission of different fragments in the same activity
Decision tree_ ID3_ C4.5_ CART
Flink Window&Time 原理
Getaverse, a distant bridge to Web3
Convolutional neural network CNN
Tencent Browser service TBS usage
Cesium uses czml to implement dynamic routes
Day 9 (this keyword and experiment)