public PdfGraphicsOptions(double strokeWidth = 0.0, PdfColor strokeColor = null, PdfColor fillColor = null, PdfLineDashPattern lineStyle = null, PdfLineCapStyle? lineCapStyle = null, PdfLineJoinStyle? lineJoinStyle = null) { this.StrokeColor = strokeColor ?? PdfColor.Black; this.FillColor = fillColor ?? PdfColor.White; this.LineDashPattern = lineStyle ?? PdfLineDashPattern.Solid; this.StrokeWidth = strokeWidth; this.LineCapstyle = lineCapStyle; this.LineJoinStyle = lineJoinStyle; }
public PdfTextOptions(PdfFont font, double fontSize, PdfColor inkColor, int leftRotationDegrees, PdfTextRenderingMode renderingMode = PdfTextRenderingMode.Fill, PdfColor outlineColor = null, double? outlineWidth = null, PdfLineDashPattern lineDashPattern = null, PdfLineCapStyle? lineCapStyle = null) { this.InkColor = inkColor ?? PdfColor.Black; this.Font = font; this.FontSize = fontSize; this.LeftRotationDegrees = leftRotationDegrees; this.RenderingMode = renderingMode; this.OutlineColor = outlineColor; this.LineDashPattern = lineDashPattern; this.LineCapStyle = LineCapStyle; this.OutlineWidth = outlineWidth; }
/// <summary> /// Sets the line dash pattern. /// </summary> public void SetLineDashPattern(PdfLineDashPattern value) { this.Write(value.ToString()); this.WriteLine(" d"); }