欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
DrawingContext.DrawText 方法

DrawingContext.DrawText 方法

Visual Studio 2010

在指定位置繪制格式化文本。

命名空間:  System.Windows.Media
程序集:  PresentationCore(在 PresentationCore.dll 中)

public void DrawText(	FormattedText formattedText,	Point origin)

參數

formattedText
類(lèi)型:System.Windows.Media.FormattedText
要繪制的格式化文本。
origin
類(lèi)型:System.Windows.Point
要繪制文本的位置。

異常條件
ObjectDisposedException

該對象已被關(guān)閉或釋放。

The following example shows how to draw text to a DrawingVisual using a DrawingContext object. A drawing context is returned by calling the RenderOpen method of a DrawingVisual object. You can draw graphics and text into a drawing context.

To draw text into the drawing context, use the DrawText method of a DrawingContext object. When you are finished drawing content into the drawing context, call the Close method to close the drawing context and persist the content.

// Create a DrawingVisual that contains text.private DrawingVisual CreateDrawingVisualText(){    // Create an instance of a DrawingVisual.    DrawingVisual drawingVisual = new DrawingVisual();    // Retrieve the DrawingContext from the DrawingVisual.    DrawingContext drawingContext = drawingVisual.RenderOpen();    // Draw a formatted text string into the DrawingContext.    drawingContext.DrawText(       new FormattedText("Click Me!",          CultureInfo.GetCultureInfo("en-us"),          FlowDirection.LeftToRight,          new Typeface("Verdana"),          36, System.Windows.Media.Brushes.Black),          new System.Windows.Point(200, 116));    // Close the DrawingContext to persist changes to the DrawingVisual.    drawingContext.Close();    return drawingVisual;}

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
通達信妖股龍頭主圖------選妖股買(mǎi)妖股,賣(mài)妖股
matlab畫(huà)圖時(shí)怎么給多個(gè)點(diǎn)(有坐標)標注數字序號???
WPF中的視頻和音頻byxirihanlin幸福像花兒一樣開(kāi)放
C#開(kāi)發(fā)WPF/Silverlight動(dòng)畫(huà)及游戲系列教程(Game Tutorial):(...
使用Python批量給圖片添加文字
chemical drawing programs review
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久