Class RichTextWidget
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
A data-backed, source-anchored widget. Its identity is stable within one widget source.
public sealed record RichTextWidget : IEquatable<RichTextWidget>
- Inheritance
-
RichTextWidget
- Implements
- Inherited Members
Constructors
RichTextWidget(string, int, Size, object?, RichTextAdornmentOptions?, string?, long)
A data-backed, source-anchored widget. Its identity is stable within one widget source.
public RichTextWidget(string Id, int Position, Size EstimatedSize, object? Data = null, RichTextAdornmentOptions? Options = null, string? AccessibleDescription = null, long ContentVersion = 0)
Parameters
IdstringThe source-owned stable identity.
PositionintThe captured UTF-16 source anchor.
EstimatedSizeSizeA finite, nonnegative layout estimate in device-independent units.
DataobjectApplication data passed to creation and recycling callbacks.
OptionsRichTextAdornmentOptionsPlacement and insertion affinity.
AccessibleDescriptionstringAn optional native accessibility description for the created view.
ContentVersionlongAn application generation that forces recreation when data changes in place.
Properties
AccessibleDescription
An optional native accessibility description for the created view.
public string? AccessibleDescription { get; init; }
Property Value
ContentVersion
An application generation that forces recreation when data changes in place.
public long ContentVersion { get; init; }
Property Value
Data
Application data passed to creation and recycling callbacks.
public object? Data { get; init; }
Property Value
EstimatedSize
A finite, nonnegative layout estimate in device-independent units.
public Size EstimatedSize { get; init; }
Property Value
Id
The source-owned stable identity.
public string Id { get; init; }
Property Value
Options
Placement and insertion affinity.
public RichTextAdornmentOptions? Options { get; init; }
Property Value
Position
The captured UTF-16 source anchor.
public int Position { get; init; }
Property Value
Methods
Deconstruct(out string, out int, out Size, out object?, out RichTextAdornmentOptions?, out string?, out long)
public void Deconstruct(out string Id, out int Position, out Size EstimatedSize, out object? Data, out RichTextAdornmentOptions? Options, out string? AccessibleDescription, out long ContentVersion)
Parameters
IdstringPositionintEstimatedSizeSizeDataobjectOptionsRichTextAdornmentOptionsAccessibleDescriptionstringContentVersionlong
Equals(RichTextWidget?)
public bool Equals(RichTextWidget? other)
Parameters
otherRichTextWidget
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RichTextWidget?, RichTextWidget?)
public static bool operator ==(RichTextWidget? left, RichTextWidget? right)
Parameters
leftRichTextWidgetrightRichTextWidget
Returns
operator !=(RichTextWidget?, RichTextWidget?)
public static bool operator !=(RichTextWidget? left, RichTextWidget? right)
Parameters
leftRichTextWidgetrightRichTextWidget