Class RichTextListPicture
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
Represents an owned image used as a list marker.
public sealed record RichTextListPicture : IEquatable<RichTextListPicture>
- Inheritance
-
RichTextListPicture
- Implements
- Inherited Members
Constructors
RichTextListPicture()
public RichTextListPicture()
Properties
AlternativeText
Gets alternative text for the marker image.
public string? AlternativeText { get; init; }
Property Value
Data
Gets the immutable encoded image payload.
public ImmutableArray<byte> Data { get; init; }
Property Value
Height
Gets the requested height in points.
public double Height { get; init; }
Property Value
Id
Gets the unique document-local picture identifier.
public string Id { get; init; }
Property Value
MediaType
Gets the image media type.
public string MediaType { get; init; }
Property Value
Source
Gets an optional source identifier or URI.
public string? Source { get; init; }
Property Value
Width
Gets the requested width in points.
public double Width { get; init; }
Property Value
Methods
Equals(RichTextListPicture?)
public bool Equals(RichTextListPicture? other)
Parameters
otherRichTextListPicture
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromBytes(string, string, ReadOnlySpan<byte>, double, double, string?)
Creates a list picture by copying encoded bytes.
public static RichTextListPicture FromBytes(string id, string mediaType, ReadOnlySpan<byte> data, double width, double height, string? alternativeText = null)
Parameters
idstringThe nonempty document-local identifier.
mediaTypestringThe image media type.
dataReadOnlySpan<byte>The encoded image payload.
widthdoubleThe requested width in points.
heightdoubleThe requested height in points.
alternativeTextstringOptional alternative text.
Returns
- RichTextListPicture
An immutable list-picture value.
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RichTextListPicture?, RichTextListPicture?)
public static bool operator ==(RichTextListPicture? left, RichTextListPicture? right)
Parameters
leftRichTextListPicturerightRichTextListPicture
Returns
operator !=(RichTextListPicture?, RichTextListPicture?)
public static bool operator !=(RichTextListPicture? left, RichTextListPicture? right)
Parameters
leftRichTextListPicturerightRichTextListPicture