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
)
參數
- drawingContext
型別:System.Windows.Media.DrawingContext
- bounds
型別:System.Windows.Rect
- horizontalTextAlignment
型別:System.Windows.HorizontalAlignment
- verticalTextAlignment
型別:System.Windows.VerticalAlignment
- textBrush
型別:System.Windows.Media.Brush
- fillBrush
型別:System.Windows.Media.Brush
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。