Show / Hide Table of Contents

Class SolidColorBrush

Paints an area with a solid color.

Inheritance
System.Object
DependencyObject
Brush
SolidColorBrush
Inherited Members
Brush.OpacityProperty
Brush.Opacity
Brush.RelativeTransformProperty
Brush.RelativeTransform
Brush.TransformProperty
Brush.Transform
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class SolidColorBrush : Brush, IDependencyObject

Constructors

| Improve this Doc View Source

SolidColorBrush()

Initializes a new instance of the SolidColorBrush class with no color.

Declaration
public SolidColorBrush()
| Improve this Doc View Source

SolidColorBrush(Color)

Initializes a new instance of the SolidColorBrush class with the specified Color.

Declaration
public SolidColorBrush(Color color)
Parameters
Type Name Description
Color color

The color to apply to the brush.

Fields

| Improve this Doc View Source

ColorProperty

Identifies the Color dependency property.

Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Color

Gets or sets the color of this SolidColorBrush.

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color

The brush's color. The default value is Transparent.

Methods

| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source