語言

Shape.Fill 屬性

定義

取得或設定畫 筆 ,負責繪製形狀內部區域。

public:
 property Brush ^ Fill { Brush ^ get(); void set(Brush ^ value); };
Brush Fill();

void Fill(Brush value);
public Brush Fill { get; set; }
var brush = shape.fill;
shape.fill = brush;
Public Property Fill As Brush
<shape Fill="{StaticResource resourceName}"/>
- or -
<shape Fill="colorString"/>
- or -
<shape>
  <shape.Fill>singleBrush</shape.Fill>
</shape>

屬性值

一 把 刷子可以畫/填滿形狀內部。 預設為 null(空筆刷),渲染時會被評估為 透明 。

適用於

另請參閱