Share via


VisualElement.SetElevation Method

Definition

Overloads

SetElevation(IPlatformElementConfiguration<Android,VisualElement>, Nullable<Single>)

Sets the elevation for the visual element.

SetElevation(VisualElement, Nullable<Single>)

Sets the elevation for the visual element.

SetElevation(IPlatformElementConfiguration<Android,VisualElement>, Nullable<Single>)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets the elevation for the visual element.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetElevation(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Android ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, Nullable<float> value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.VisualElement> SetElevation (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android,Microsoft.Maui.Controls.VisualElement> config, float? value);
static member SetElevation : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.VisualElement> * Nullable<single> -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Android, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetElevation (config As IPlatformElementConfiguration(Of Android, VisualElement), value As Nullable(Of Single)) As IPlatformElementConfiguration(Of Android, VisualElement)

Parameters

config
IPlatformElementConfiguration<Android,VisualElement>

The visual element on the Android platform whose elevation to set.

value
Nullable<Single>

The new elevation value.

Returns

Applies to

SetElevation(VisualElement, Nullable<Single>)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets the elevation for the visual element.

public:
 static void SetElevation(Microsoft::Maui::Controls::VisualElement ^ element, Nullable<float> value);
public static void SetElevation (Microsoft.Maui.Controls.VisualElement element, float? value);
static member SetElevation : Microsoft.Maui.Controls.VisualElement * Nullable<single> -> unit
Public Sub SetElevation (element As VisualElement, value As Nullable(Of Single))

Parameters

element
VisualElement
value
Nullable<Single>

The new elevation value.

Applies to