예제 #1
0
        public PdfSharp.Drawing.XDashStyle GetHeader_StrokePdf()
        {
            float width = (float)GetHdrStroke();

            if (GetHdrStrokeType() == null || HDRSTROKETYPE_SolidLine.Equals(GetHdrStrokeType()))
            {
                header_StrokePdf = PdfSharp.Drawing.XDashStyle.Solid;
            }
            else if (HDRSTROKETYPE_DashedLine.Equals(GetHdrStrokeType()))
            {
                header_StrokePdf = PdfSharp.Drawing.XDashStyle.Dash;
            }
            else if (HDRSTROKETYPE_DottedLine.Equals(GetHdrStrokeType()))
            {
                header_StrokePdf = PdfSharp.Drawing.XDashStyle.Dot;
            }
            else if (HDRSTROKETYPE_Dash_DottedLine.Equals(GetHdrStrokeType()))
            {
                header_StrokePdf = PdfSharp.Drawing.XDashStyle.DashDot;
            }

            if (string.IsNullOrEmpty(header_Stroke.ToString()))
            {
                header_StrokePdf = PdfSharp.Drawing.XDashStyle.Solid;
            }


            return(header_StrokePdf);
        }
예제 #2
0
        }       //	getHLine_Stroke

        public PdfSharp.Drawing.XDashStyle GetHLine_StrokePdf()
        {
            decimal width = GetLineStroke() / 2;

            if (GetHdrStrokeType() == null || LINESTROKETYPE_DottedLine.Equals(GetLineStrokeType()))
            {
                lineH_StrokePdf = PdfSharp.Drawing.XDashStyle.Dot;
            }
            else if (LINESTROKETYPE_SolidLine.Equals(GetLineStrokeType()))
            {
                lineH_StrokePdf = PdfSharp.Drawing.XDashStyle.Solid;                    //	-
            }
            else if (LINESTROKETYPE_DashedLine.Equals(GetLineStrokeType()))
            {
                lineH_StrokePdf = PdfSharp.Drawing.XDashStyle.Dash;             //	- -
            }
            else if (LINESTROKETYPE_Dash_DottedLine.Equals(GetLineStrokeType()))
            {
                lineH_StrokePdf = PdfSharp.Drawing.XDashStyle.DashDot;                //	default / fallback
            }
            return(lineH_StrokePdf);
        }       //	getHLine_Stroke