Skip to main content
.NET Framework Class Library
SolidColorBrushColor Property

Gets or sets the color of this SolidColorBrush.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Property Color As [%$TOPIC/ms613054_en-us_VS_110_2_0_0_0_0%]
public [%$TOPIC/ms613054_en-us_VS_110_2_0_1_0_0%] Color { get; set; }
public:
property [%$TOPIC/ms613054_en-us_VS_110_2_0_2_0_0%] Color {
	[%$TOPIC/ms613054_en-us_VS_110_2_0_2_0_1%] get ();
	void set ([%$TOPIC/ms613054_en-us_VS_110_2_0_2_0_2%] value);
}
member Color : [%$TOPIC/ms613054_en-us_VS_110_2_0_3_0_0%] with get, set
function get Color () : [%$TOPIC/ms613054_en-us_VS_110_2_0_4_0_0%] 
function set Color (value : [%$TOPIC/ms613054_en-us_VS_110_2_0_4_0_1%])
<object>
  <object.Color>
    <[%$TOPIC/ms613054_en-us_VS_110_2_0_5_0_0%] .../>
  </object.Color>
</object>
<object Color="[%$TOPIC/ms613054_en-us_VS_110_2_0_6_0_0%]" .../>

Property Value

Type: System.Windows.MediaColor
The brush's color. The default value is Transparent.
Dependency Property Information

Identifier field

ColorProperty

Metadata properties set to true

None

Remarks

For a list of predefined colors, see the Colors class. For a list of system colors, see the SystemColors class.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1