Bagikan melalui


WindowsFormsHost.Foreground Properti

Definisi

Mendapatkan atau mengatur warna latar depan kontrol yang dihosting.

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

Nilai Properti

digunakan Brush untuk mengatur warna latar depan untuk kontrol yang dihosting.

Keterangan

Properti dependensi ini diidentifikasi oleh ForegroundProperty bidang . Secara default, properti ini dipetakan untuk memperbarui Control.ForeColor properti kontrol yang dihosting. Untuk informasi selengkapnya tentang pemetaan Foreground properti, lihat Formulir Windows dan Pemetaan Properti WPF.

Penggunaan Atribut XAML

<object Foreground="Brush"/>

Nilai XAML

Sikat Lihat Brush untuk sintaks Atribut XAML.

Informasi Properti Dependensi

Bidang pengidentifikasi ForegroundProperty
Properti metadata diatur ke true AffectsRender,

SubPropertiesDoNotAffectRender,

Inherits

Berlaku untuk

Lihat juga