WindowsFormsHost.Foreground 屬性

定義

取得或設定裝載控制項的前景色彩。

public:
 property System::Windows::Media::Brush ^ Foreground { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Foreground { get; set; }
member this.Foreground : System.Windows.Media.Brush with get, set
Public Property Foreground As Brush

屬性值

Brush,用來設定裝載控制項的前景色彩。

備註

此相依性屬性是由 ForegroundProperty 欄位識別。 根據預設,這個屬性會對應至更新 Control.ForeColor 裝載控制項的 屬性。 如需屬性對應 Foreground 的詳細資訊,請參閱Windows Forms 和 WPF 屬性對應

XAML Attribute Usage

<object Foreground="Brush"/>

XAML 值

如需 XAML 屬性語法,請參閱 Brush

相依性屬性資訊

識別碼欄位 ForegroundProperty
設定為 的中繼資料屬性 true AffectsRender,

SubPropertiesDoNotAffectRender,

Inherits

適用於

另請參閱