Allow the border to be specified when a grid is created
This commit is contained in:
parent
f25b2828ca
commit
f78e7f6a5a
@ -3201,7 +3201,7 @@ namespace Volian.Controls.Library
|
||||
this.MergedRanges.Clear();
|
||||
this.Clear();
|
||||
this.IsRoTable = true;
|
||||
this.ParseTableFromText(valtext);
|
||||
this.ParseTableFromText(valtext, GridLinePattern.Single);
|
||||
this.AutoSizeCols();
|
||||
this.AutoSizeRows();
|
||||
this.MakeRTFcells();
|
||||
@ -3272,7 +3272,7 @@ namespace Volian.Controls.Library
|
||||
/// Then it will parse the the text, place them in cells, and attempt to merge cells were needed.
|
||||
/// </summary>
|
||||
/// <param name="txtbuff"></param>
|
||||
public void ParseTableFromText(string buff)
|
||||
public void ParseTableFromText(string buff,GridLinePattern border)
|
||||
{
|
||||
string txtbuff = PrepROTableText(buff);
|
||||
if (IsRoTable) txtbuff = _RemoveComments.Replace(txtbuff, "");
|
||||
@ -3599,7 +3599,7 @@ namespace Volian.Controls.Library
|
||||
TrimMergedRangeCellText(cr);
|
||||
}
|
||||
}
|
||||
MyBorders = new VlnBorders(GridLinePattern.Single, Rows.Count, Cols.Count);
|
||||
MyBorders = new VlnBorders(border, Rows.Count, Cols.Count);
|
||||
}
|
||||
|
||||
private void TrimMergedRangeCellText(CellRange cr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user