TextRenderer.Draw 方法 (String, DrawingContext, Rect, HorizontalAlignment, VerticalAlignment)
命名空间: Microsoft.TeamFoundation.Controls.WPF
程序集: Microsoft.TeamFoundation.Controls(在 Microsoft.TeamFoundation.Controls.dll 中)
语法
声明
Public Sub Draw ( _
text As String, _
drawingContext As DrawingContext, _
bounds As Rect, _
horizontalTextAlignment As HorizontalAlignment, _
verticalTextAlignment As VerticalAlignment _
)
public void Draw(
string text,
DrawingContext drawingContext,
Rect bounds,
HorizontalAlignment horizontalTextAlignment,
VerticalAlignment verticalTextAlignment
)
参数
- text
类型:System.String
- drawingContext
类型:System.Windows.Media.DrawingContext
- bounds
类型:System.Windows.Rect
- horizontalTextAlignment
类型:System.Windows.HorizontalAlignment
- verticalTextAlignment
类型:System.Windows.VerticalAlignment
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。