DrawingContext.DrawGeometry(Brush, Pen, Geometry) 方法

定義

使用指定的 GeometryBrush 繪製指定的 PenDraws the specified Geometry using the specified Brush and Pen.

public:
 abstract void DrawGeometry(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Media::Geometry ^ geometry);
public abstract void DrawGeometry (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Media.Geometry geometry);
abstract member DrawGeometry : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Media.Geometry -> unit
Public MustOverride Sub DrawGeometry (brush As Brush, pen As Pen, geometry As Geometry)

參數

brush
Brush

用來填滿 BrushGeometryThe Brush with which to fill the Geometry. 這是選擇性,而且可為 nullThis is optional, and can be null. 如果筆刷為 null,則不會繪製任何填滿。If the brush is null, no fill is drawn.

pen
Pen

用來描繪 PenGeometryThe Pen with which to stroke the Geometry. 這是選擇性,而且可為 nullThis is optional, and can be null. 如果畫筆位於 null,則不會繪製任何筆觸。If the pen is null, no stroke is drawn.

geometry
Geometry

要繪製的 GeometryThe Geometry to draw.

適用於