Added PrintOverride colors
This commit is contained in:
parent
7b018d1abb
commit
332e35c484
@ -39,6 +39,49 @@ namespace Volian.Print.Library
|
|||||||
return color;
|
return color;
|
||||||
return _SvgColor;
|
return _SvgColor;
|
||||||
}
|
}
|
||||||
|
private static System.Drawing.Color _BoxColor = System.Drawing.Color.Empty;
|
||||||
|
public static System.Drawing.Color BoxColor
|
||||||
|
{
|
||||||
|
get { return _BoxColor; }
|
||||||
|
set { _BoxColor = value; }
|
||||||
|
}
|
||||||
|
public static System.Drawing.Color OverrideBoxColor(System.Drawing.Color color)
|
||||||
|
{
|
||||||
|
if (_BoxColor == System.Drawing.Color.Empty)
|
||||||
|
return color;
|
||||||
|
return _BoxColor;
|
||||||
|
}
|
||||||
|
private static System.Drawing.Color _ChangeBarColor = System.Drawing.Color.Empty;
|
||||||
|
public static System.Drawing.Color ChangeBarColor
|
||||||
|
{
|
||||||
|
get { return _ChangeBarColor; }
|
||||||
|
set { _ChangeBarColor = value; }
|
||||||
|
}
|
||||||
|
public static System.Drawing.Color OverrideChangeBarColor(System.Drawing.Color color)
|
||||||
|
{
|
||||||
|
if (_ChangeBarColor == System.Drawing.Color.Empty)
|
||||||
|
return color;
|
||||||
|
return _ChangeBarColor;
|
||||||
|
}
|
||||||
|
private static System.Drawing.Color _DebugColor = System.Drawing.Color.Empty;
|
||||||
|
public static System.Drawing.Color DebugColor
|
||||||
|
{
|
||||||
|
get { return _DebugColor; }
|
||||||
|
set { _DebugColor = value; }
|
||||||
|
}
|
||||||
|
public static System.Drawing.Color OverrideDebugColor(System.Drawing.Color color)
|
||||||
|
{
|
||||||
|
if (_DebugColor == System.Drawing.Color.Empty)
|
||||||
|
return color;
|
||||||
|
return _DebugColor;
|
||||||
|
}
|
||||||
|
public static void Reset()
|
||||||
|
{
|
||||||
|
_TextColor = System.Drawing.Color.Empty;
|
||||||
|
_SvgColor = System.Drawing.Color.Empty;
|
||||||
|
_BoxColor = System.Drawing.Color.Empty;
|
||||||
|
_ChangeBarColor = System.Drawing.Color.Empty;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public class Rtf2iTextSharp : RtfVisualVisitorBase
|
public class Rtf2iTextSharp : RtfVisualVisitorBase
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user