Width Method
Returns a query which matches the device width with a value.
Definition
Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static StyleQuery Width(
this StyleQuery? previous,
StyleQueryComparisonOperator operator,
double value
)
<ExtensionAttribute>
Public Shared Function Width (
previous As StyleQuery,
operator As StyleQueryComparisonOperator,
value As Double
) As StyleQuery
[<ExtensionAttribute>]
static member Width :
previous : StyleQuery *
operator : StyleQueryComparisonOperator *
value : float -> StyleQuery
Parameters
- StyleQuery
- The previous query.
- StyleQueryComparisonOperator
- The operator to match the device width
- Double
- The width to match
Return Value
StyleQuery
The query.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type StyleQuery. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).