コード例 #1
0
        }       //	getHLine_Stroke

        /// <summary>
        /// GEt Horizontal Line stroke for excel
        /// </summary>
        /// <returns>Line style</returns>
        public Excel.XlLineStyle GetHLine_Stroke_Excel()
        {
            decimal width = GetLineStroke() / 2;

            if (GetHdrStrokeType() == null || LINESTROKETYPE_DottedLine.Equals(GetLineStrokeType()))
            {
                lineH_Stroke_Excel = Excel.XlLineStyle.xlDot;
            }
            else if (LINESTROKETYPE_SolidLine.Equals(GetLineStrokeType()))
            {
                lineH_Stroke_Excel = Excel.XlLineStyle.xlContinuous;                    //	-
            }
            else if (LINESTROKETYPE_DashedLine.Equals(GetLineStrokeType()))
            {
                lineH_Stroke_Excel = Excel.XlLineStyle.xlDash;          //	- -
            }
            else if (LINESTROKETYPE_Dash_DottedLine.Equals(GetLineStrokeType()))
            {
                lineH_Stroke_Excel = Excel.XlLineStyle.xlDashDot;                //	default / fallback
            }
            return(lineH_Stroke_Excel);
        }       //	getHLine_Stroke
コード例 #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
コード例 #3
0
        }       //	getHLine_Stroke

        public DashStyle GetVLine_Stroke()
        {
            decimal width = GetLineStroke() / 2;

            if (GetHdrStrokeType() == null || LINESTROKETYPE_DottedLine.Equals(GetLineStrokeType()))
            {
                lineV_Stroke = DashStyle.Dot;
            }
            else if (LINESTROKETYPE_SolidLine.Equals(GetLineStrokeType()))
            {
                lineV_Stroke = DashStyle.Solid;                 //	-
            }
            else if (LINESTROKETYPE_DashedLine.Equals(GetLineStrokeType()))
            {
                lineV_Stroke = DashStyle.Dash;          //	- -
            }
            else if (LINESTROKETYPE_Dash_DottedLine.Equals(GetLineStrokeType()))
            {
                lineV_Stroke = DashStyle.DashDot;
            }
            ;                                                      //	default / fallback

            return(lineV_Stroke);
        }       //	getHLine_Stroke