Cairo.Context.ShowText C# (CSharp) Метод

ShowText() публичный Метод

public ShowText ( byte utf8 ) : void
utf8 byte
Результат void
        public void ShowText(byte[] utf8)
        {
            CheckDisposed ();
            NativeMethods.cairo_show_text (handle, TerminateUtf8 (utf8));
        }

Same methods

Context::ShowText ( string str ) : void

Usage Example

Пример #1
0
        public static void PrintMonthHeader(Cairo.Context cr, int year, int month, bool outputMonthHeaderRect = false)
        {
            if (outputMonthHeaderRect)
            {
                var MonthHeaderRect = new Rectangle(
                    MarginLeft, MarginUp,
                    ContentWidth,
                    MonthHeader);
                cr.Rectangle(MonthHeaderRect);
            }

            var Month = MonthNames[month];

            cr.SetFontSize(MonthHeader * 0.8);
            var te = cr.TextExtents(Month);

            cr.MoveTo(MarginLeft - te.XBearing,
                      MarginUp + MonthHeader - ((MonthHeader - te.Height) / 2) - (te.Height + te.YBearing));
            cr.ShowText(Month);

            te = cr.TextExtents(year.ToString());
            cr.MoveTo(width - MarginRight - te.Width - te.XBearing,
                      MarginUp + MonthHeader - ((MonthHeader - te.Height) / 2) - (te.Height + te.YBearing));
            cr.ShowText(year.ToString());
        }
All Usage Examples Of Cairo.Context::ShowText