Override the default font for Demo Mode
Check for null MyFlexGrid before using it. Added Static LineWidth0 method used for drawing borders on the screen Fixed logic to draw borders on the VlnFlexGrid Fixed logic to draw grid borders on the pdf output.
This commit is contained in:
@@ -189,6 +189,23 @@ namespace Volian.Controls.Library
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
public static int LineWidth0(GridLinePattern linePattern)
|
||||
{
|
||||
switch (linePattern)
|
||||
{
|
||||
case GridLinePattern.None:
|
||||
return 0;
|
||||
case GridLinePattern.Double:
|
||||
case GridLinePattern.Thick:
|
||||
return 3;
|
||||
case GridLinePattern.Single:
|
||||
case GridLinePattern.Dotted:
|
||||
case GridLinePattern.Dashed:
|
||||
case GridLinePattern.Mixed:
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
public static Pen LinePen(GridLinePattern linePattern, Color foreColor)
|
||||
{
|
||||
Pen pn = new Pen(foreColor, 1);
|
||||
@@ -286,6 +303,7 @@ namespace Volian.Controls.Library
|
||||
for (int r = 0; r < newRows; r++)
|
||||
{
|
||||
int rSrc = r < row ? r : r > row + count ? r - count : row;
|
||||
if (rSrc > Rows - 1) rSrc = Rows - 1;
|
||||
for (int c = 0; c < Columns; c++)
|
||||
{
|
||||
newLines[r * Columns + c] = Lines[rSrc * Columns + c];
|
||||
|
Reference in New Issue
Block a user