Skip to main content

BoxShadows Struct

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Represents a collection of Avalonia.Media.BoxShadows.

public struct BoxShadows

Inheritance: ValueType -> BoxShadows

Constructors​

NameDescription
BoxShadows (2 overloads)Initializes a new instance of the Avalonia.Media.BoxShadows struct.

BoxShadows overloads​

BoxShadows Constructor​

Initializes a new instance of the Avalonia.Media.BoxShadows struct.

public BoxShadows(Avalonia.Media.BoxShadow shadow)
Parameters​

shadow Avalonia.Media.BoxShadow

The first Avalonia.Media.BoxShadow to add to the collection.

BoxShadows Constructor​

Initializes a new instance of the Avalonia.Media.BoxShadows struct.

public BoxShadows(Avalonia.Media.BoxShadow first, Avalonia.Media.BoxShadow[] rest)
Parameters​

first Avalonia.Media.BoxShadow

The first Avalonia.Media.BoxShadow to add to the collection.

rest Avalonia.Media.BoxShadow[]

All remaining Avalonia.Media.BoxShadows to add to the collection.

Methods​

NameDescription
Equals (2 overloads)Indicates whether the current object is equal to another object of the same type.
GetEnumeratorNo summary available.
GetHashCodeNo summary available.
ParseParses a Avalonia.Media.BoxShadows string representing one or more Avalonia.Media.BoxShadows.
ToStringNo summary available.
TransformBoundsNo summary available.

Equals overloads​

Equals Method​

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Avalonia.Media.BoxShadows other)
Parameters​

other Avalonia.Media.BoxShadows

An object to compare with this object.

Returns​

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetEnumerator Method​

public Avalonia.Media.BoxShadows.BoxShadowsEnumerator GetEnumerator()

Returns​

Avalonia.Media.BoxShadows.BoxShadowsEnumerator

GetHashCode Method​

public int GetHashCode()

Returns​

int

Parse Method​

Parses a Avalonia.Media.BoxShadows string representing one or more Avalonia.Media.BoxShadows.

public Avalonia.Media.BoxShadows Parse(string s)

Parameters​

s string

The input string to parse.

Returns​

Avalonia.Media.BoxShadows

A new Avalonia.Media.BoxShadows collection.

ToString Method​

public string ToString()

Returns​

string

TransformBounds Method​

public Avalonia.Rect TransformBounds(Avalonia.Rect& rect)

Parameters​

rect Avalonia.Rect&

Returns​

Avalonia.Rect

Properties​

NameDescription
CountGets the number of Avalonia.Media.BoxShadows in the collection.
HasInsetShadowsGets a value indicating whether any Avalonia.Media.BoxShadow in the collection has Avalonia.Media.BoxShadow.IsInset set to true.
ItemNo summary available.

Count Property​

Gets the number of Avalonia.Media.BoxShadows in the collection.

public int Count { get; set; }

HasInsetShadows Property​

Gets a value indicating whether any Avalonia.Media.BoxShadow in the collection has Avalonia.Media.BoxShadow.IsInset set to true.

public bool HasInsetShadows { get; set; }

Item Property​

public Avalonia.Media.BoxShadow Item { get; set; }