Skip to main content

BoxShadow Structure

Represents a box shadow which can be attached to an element or control.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public struct BoxShadow
View Source
InheritanceObjectValueType → BoxShadow

Properties

BlurGets or sets the blur radius. This is used to control the amount of blurring.
ColorGets or sets the color of the shadow.
IsInsetGets or sets a value indicating whether the shadow is inset and drawn within the element rather than outside of it.
OffsetXGets or sets the horizontal offset (distance) of the shadow.
OffsetYGets or sets the vertical offset (distance) of the shadow.
SpreadGets or sets the spread radius. This is used to control the overall size of the shadow.

Methods

Equals(BoxShadow)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
GetHashCode()Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Parse(String)Parses a BoxShadow string.
ToString()Returns the fully qualified type name of this instance.
(Overrides ValueType.ToString())
TransformBounds(Rect)Transforms the specified bounding rectangle to account for the shadow's offset, spread, and blur.

Operators

Equality(BoxShadow, BoxShadow)Determines whether two BoxShadow values are equal.
Inequality(BoxShadow, BoxShadow)Determines whether two BoxShadow values are not equal.

See Also

Reference

Avalonia.Media Namespace