BoxShadows Struct
Definition
Represents a collection of Avalonia.Media.BoxShadows.
public struct BoxShadows
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Equals (2 overloads) | Indicates whether the current object is equal to another object of the same type. |
| GetEnumerator | No summary available. |
| GetHashCode | No summary available. |
| Parse | Parses a Avalonia.Media.BoxShadows string representing one or more Avalonia.Media.BoxShadows. |
| ToString | No summary available. |
| TransformBounds | No 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
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
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
Properties
| Name | Description |
|---|---|
| Count | Gets the number of Avalonia.Media.BoxShadows in the collection. |
| HasInsetShadows | Gets a value indicating whether any Avalonia.Media.BoxShadow in the collection has Avalonia.Media.BoxShadow.IsInset set to true. |
| Item | No 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; }