共用方式為


TextRenderer.Draw 方法 (DrawingContext, Rect, HorizontalAlignment, VerticalAlignment, Brush, Brush)

命名空間:  Microsoft.TeamFoundation.Controls.WPF
組件:  Microsoft.TeamFoundation.Controls (在 Microsoft.TeamFoundation.Controls.dll 中)

語法

'宣告
Public Sub Draw ( _
    drawingContext As DrawingContext, _
    bounds As Rect, _
    horizontalTextAlignment As HorizontalAlignment, _
    verticalTextAlignment As VerticalAlignment, _
    textBrush As Brush, _
    fillBrush As Brush _
)
public void Draw(
    DrawingContext drawingContext,
    Rect bounds,
    HorizontalAlignment horizontalTextAlignment,
    VerticalAlignment verticalTextAlignment,
    Brush textBrush,
    Brush fillBrush
)

參數

.NET Framework 安全性

請參閱

參考

TextRenderer 類別

Draw 多載

Microsoft.TeamFoundation.Controls.WPF 命名空間