/// <summary> /// Prints the horizontal separator left of the specified origin and with the specified height. /// </summary> /// <param name="separator">The separator to print.</param> /// <param name="origin">The location where to print.</param> /// <param name="height">The separator height.</param> public virtual void PrintHorizontalSeparator(HorizontalSeparators separator, Point origin, Measure height) { BrushSettings Brush = BrushSettings.Symbol; switch (separator) { case HorizontalSeparators.Comma: PrintableArea.Print(CommaSeparatorString, origin.X.Print - CommaSeparatorString.Length, origin.Y.Print, Brush); break; case HorizontalSeparators.Dot: PrintableArea.Print(DotSeparatorString, origin.X.Print - DotSeparatorString.Length, origin.Y.Print, Brush); break; } }
/// <summary> /// Draws the horizontal separator left of the specified origin and with the specified height. /// </summary> /// <param name="separator">The separator to draw.</param> /// <param name="origin">The location where to draw.</param> /// <param name="height">The separator height.</param> public virtual void DrawHorizontalSeparator(HorizontalSeparators separator, Point origin, Measure height) { Debug.Assert(WpfDrawingContext != null); Brush ForegroundBrush = GetBrush(BrushSettings.Symbol); FormattedText ft; switch (separator) { case HorizontalSeparators.Comma: ft = CreateFormattedText(CommaSeparatorString, EmSize, ForegroundBrush); WpfDrawingContext.DrawText(ft, new System.Windows.Point(PagePadding.Left.Draw + origin.X.Draw - ft.WidthIncludingTrailingWhitespace, PagePadding.Top.Draw + origin.Y.Draw)); break; case HorizontalSeparators.Dot: ft = CreateFormattedText(DotSeparatorString, EmSize, ForegroundBrush); WpfDrawingContext.DrawText(ft, new System.Windows.Point(PagePadding.Left.Draw + origin.X.Draw - ft.WidthIncludingTrailingWhitespace, PagePadding.Top.Draw + origin.Y.Draw)); break; } }
public Measure GetHorizontalSeparatorWidth(HorizontalSeparators separator) { return(Measure.Zero); }
public void PrintHorizontalSeparator(HorizontalSeparators separator, Point origin, Measure height) { }
/// <summary> /// Gets the width corresponding to a separator between cells in a line. /// </summary> /// <param name="separator">The separator.</param> public virtual Measure GetHorizontalSeparatorWidth(HorizontalSeparators separator) { return(HorizontalSeparatorWidthTable[separator]); }