DisplayFeature Class
A display feature of the screen (https://drafts.csswg.org/css-viewport/#display-feature-override), such as the fold of a foldable device or the hinge between two screens, which splits the viewport in segments.
public sealed class DisplayFeature : IEquatable<DisplayFeature>- Implements
Constructors
| Name | Description |
|---|---|
| DisplayFeature(DisplayFeatureOrientation, double, double) | A display feature of the screen (https://drafts.csswg.org/css-viewport/#display-feature-override), such as the fold of a foldable device or the hinge between two screens, which splits the viewport in segments. |
DisplayFeature(DisplayFeatureOrientation, double, double)
ViewportSegments.csA display feature of the screen (https://drafts.csswg.org/css-viewport/#display-feature-override), such as the fold of a foldable device or the hinge between two screens, which splits the viewport in segments.
public DisplayFeature(DisplayFeatureOrientation Orientation, double Offset, double MaskLength)Parameters
OrientationDisplayFeatureOrientation- The orientation of the feature.
Offsetdouble- The distance in CSS pixels from the left edge (vertical feature) or the top edge (horizontal feature) of the viewport.
MaskLengthdouble- The width (vertical feature) or the height (horizontal feature) of the feature in CSS pixels: the area that the viewport does not display.
Properties
| Name | Description |
|---|---|
| MaskLength | The width (vertical feature) or the height (horizontal feature) of the feature in CSS pixels: the area that the viewport does not display. |
| Offset | The distance in CSS pixels from the left edge (vertical feature) or the top edge (horizontal feature) of the viewport. |
| Orientation | The orientation of the feature. |
MaskLength
ViewportSegments.csOffset
ViewportSegments.csOrientation
ViewportSegments.csThe orientation of the feature.
public DisplayFeatureOrientation Orientation { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Deconstruct(DisplayFeatureOrientation, double, double) | |
| Equals(DisplayFeature?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Deconstruct(DisplayFeatureOrientation, double, double)
public void Deconstruct(out DisplayFeatureOrientation Orientation, out double Offset, out double MaskLength)Parameters
OrientationDisplayFeatureOrientationOffsetdoubleMaskLengthdouble
No documentation is available.
Equals overloads
Equals(DisplayFeature?)
public bool Equals(DisplayFeature? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(DisplayFeature?, DisplayFeature?) | |
| operator !=(DisplayFeature?, DisplayFeature?) |
operator ==(DisplayFeature?, DisplayFeature?)
public static bool operator ==(DisplayFeature? left, DisplayFeature? right)No documentation is available.
operator !=(DisplayFeature?, DisplayFeature?)
public static bool operator !=(DisplayFeature? left, DisplayFeature? right)No documentation is available.