/// <summary> /// Sets the text rendering mode. /// </summary> public void SetTextRenderingMode(PdfTextRenderingMode value) { if (!isInTextBlock) { throw new InvalidOperationException("Must call BeginText() before this operation."); } this.Write(((int)value).ToString()); this.WriteLine(" Tr"); }
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; }
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 text rendering mode. /// </summary> public void SetTextRenderingMode(PdfTextRenderingMode value) { if (!isInTextBlock) throw new InvalidOperationException("Must call BeginText() before this operation."); this.Write(((int)value).ToString()); this.WriteLine(" Tr"); }