Partager via


BrushToColorConverter.Convert(Brush, Object, CultureInfo) Method

Definition

Converts the specified brush to a color.

protected:
 override System::Windows::Media::Color Convert(System::Windows::Media::Brush ^ value, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
protected:
 override System::Windows::Media::Color Convert(System::Windows::Media::Brush ^ brush, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
protected override System.Windows.Media.Color Convert (System.Windows.Media.Brush value, object parameter, System.Globalization.CultureInfo culture);
protected override System.Windows.Media.Color Convert (System.Windows.Media.Brush brush, object parameter, System.Globalization.CultureInfo culture);
override this.Convert : System.Windows.Media.Brush * obj * System.Globalization.CultureInfo -> System.Windows.Media.Color
override this.Convert : System.Windows.Media.Brush * obj * System.Globalization.CultureInfo -> System.Windows.Media.Color
Protected Overrides Function Convert (value As Brush, parameter As Object, culture As CultureInfo) As Color
Protected Overrides Function Convert (brush As Brush, parameter As Object, culture As CultureInfo) As Color

Parameters

valuebrush
Brush

The value of the brush.

parameter
Object

Parameter used by the brush.

culture
CultureInfo

Culture of the brush.

Returns

Returns the color of the brush.

Applies to