资 源 简 介
先取出TStringGrid中的Cells中的字符串,再利用TMemo分行功能,将字符串分割成多行,其中TMemo的字体要与TStringGrid相同;宽度要与TStringGrid.Cells[i,j]的宽度相同。然后将TMemo的每行内容重新复制到多个同一列的多个Cells中,就实现了TStringGrid分行功能了。-first Retrieve TStringGrid Cells of the string, Reuse TMemo branch function, the string is separated into multiple lines. TMemo which fonts with the same TStringGrid; width with TStringGrid.Cells [i, j] of the same width. Then each trip TMemo re-copying the contents of a number of out of the same number of Cells, on the realization of TStringGrid branch functions.