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)
- C#
- VB
- F#
public struct BoxShadow
Public Structure BoxShadow
[<SealedAttribute>]
type BoxShadow =
struct
inherit ValueType
end
Inheritance | Object → ValueType → BoxShadow |
Properties
Blur | Gets or sets the blur radius. This is used to control the amount of blurring. |
Color | Gets or sets the color of the shadow. |
IsInset | Gets or sets a value indicating whether the shadow is inset and drawn within the element rather than outside of it. |
OffsetX | Gets or sets the horizontal offset (distance) of the shadow. |
OffsetY | Gets or sets the vertical offset (distance) of the shadow. |
Spread | Gets 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. |