Table of Contents

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

string

Data

Gets the immutable encoded image payload.

public ImmutableArray<byte> Data { get; init; }

Property Value

ImmutableArray<byte>

Height

Gets the requested height in points.

public double Height { get; init; }

Property Value

double

Id

Gets the unique document-local picture identifier.

public string Id { get; init; }

Property Value

string

MediaType

Gets the image media type.

public string MediaType { get; init; }

Property Value

string

Source

Gets an optional source identifier or URI.

public string? Source { get; init; }

Property Value

string

Width

Gets the requested width in points.

public double Width { get; init; }

Property Value

double

Methods

Equals(RichTextListPicture?)

public bool Equals(RichTextListPicture? other)

Parameters

other RichTextListPicture

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

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

id string

The nonempty document-local identifier.

mediaType string

The image media type.

data ReadOnlySpan<byte>

The encoded image payload.

width double

The requested width in points.

height double

The requested height in points.

alternativeText string

Optional alternative text.

Returns

RichTextListPicture

An immutable list-picture value.

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RichTextListPicture?, RichTextListPicture?)

public static bool operator ==(RichTextListPicture? left, RichTextListPicture? right)

Parameters

left RichTextListPicture
right RichTextListPicture

Returns

bool

operator !=(RichTextListPicture?, RichTextListPicture?)

public static bool operator !=(RichTextListPicture? left, RichTextListPicture? right)

Parameters

left RichTextListPicture
right RichTextListPicture

Returns

bool