public Excel.XlLineStyle GetHeader_StrokeForExcel() { if (string.IsNullOrEmpty(header_Stroke1.ToString())) { float width = (float)GetHdrStroke(); if (GetHdrStrokeType() == null || HDRSTROKETYPE_SolidLine.Equals(GetHdrStrokeType())) { return(Excel.XlLineStyle.xlContinuous); } else if (HDRSTROKETYPE_DashedLine.Equals(GetHdrStrokeType())) { return(Excel.XlLineStyle.xlDash); } else if (HDRSTROKETYPE_DottedLine.Equals(GetHdrStrokeType())) { return(Excel.XlLineStyle.xlDot); } else if (HDRSTROKETYPE_Dash_DottedLine.Equals(GetHdrStrokeType())) { return(Excel.XlLineStyle.xlDashDot); } if (string.IsNullOrEmpty(header_Stroke1.ToString())) { return(Excel.XlLineStyle.xlContinuous); } } return(Excel.XlLineStyle.xlContinuous); }
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); }