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