Show / Hide Table of Contents

Class GradientStop

Describes the location and color of a transition point in a gradient.

Inheritance
System.Object
DependencyObject
GradientStop
Inherited Members
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)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class GradientStop : DependencyObject, IDependencyObject

Fields

| Improve this Doc View Source

ColorProperty

Identifies the Color dependency property.

Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

OffsetProperty

Identifies the Offset dependency property.

Declaration
public static readonly DependencyProperty OffsetProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Color

Gets or sets the color of the gradient stop.

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

The color of the gradient stop. The default is Transparent.

| Improve this Doc View Source

Offset

Gets the location of the gradient stop within the gradient vector.

Declaration
public double Offset { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Clone()

Declaration
public object Clone()
Returns
Type Description
System.Object

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