Class StyleImageOptions
public sealed record StyleImageOptions : IEquatable<StyleImageOptions>
- Inheritance
-
StyleImageOptions
- Implements
- Inherited Members
Remarks
Compares and hashes by property value; keep an instance unmodified while it is a key in a hash-based collection.
Properties
Content
Content box used when icon-text-fit applies.
public ImageContent? Content { get; set; }
Property Value
PixelRatio
public float? PixelRatio { get; set; }
Property Value
Sdf
public bool? Sdf { get; set; }
Property Value
- bool?
StretchX
Horizontally stretchable intervals. A present empty list stays distinguishable from an absent one. Assignment stores a snapshot the caller cannot mutate.
public IReadOnlyList<ImageStretch>? StretchX { get; set; }
Property Value
StretchY
Vertically stretchable intervals. Assignment stores a snapshot.
public IReadOnlyList<ImageStretch>? StretchY { get; set; }
Property Value
TextFitHeight
public StyleImageTextFit? TextFitHeight { get; set; }
Property Value
TextFitWidth
public StyleImageTextFit? TextFitWidth { get; set; }
Property Value
Methods
Equals(StyleImageOptions?)
Compares by property value, including list contents.
public bool Equals(StyleImageOptions? other)
Parameters
otherStyleImageOptions
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.