Table of Contents

Struct RDFormsCaption.Parsed

Namespace
RDCore.Forms.Avalonia.Controls
Assembly
RDCore.Forms.Avalonia.dll

A caption as shown, and its access key.

public readonly record struct RDFormsCaption.Parsed : IEquatable<RDFormsCaption.Parsed>
Implements
Inherited Members

Constructors

Parsed(string, int?)

A caption as shown, and its access key.

public Parsed(string Shown, int? AccessKey)

Parameters

Shown string

The caption as shown, its & markers taken out.

AccessKey int?

The index in Shown of the access key, or null where it has none.

Properties

AccessKey

The index in Shown of the access key, or null where it has none.

public int? AccessKey { get; init; }

Property Value

int?

FitsAccessText

Whether an Avalonia.Controls.Primitives.AccessText can draw the caption: it has a key, and no underscore is shown before the key.

public bool FitsAccessText { get; }

Property Value

bool

ForAccessText

The caption spelled for an Avalonia.Controls.Primitives.AccessText: every underscore doubled, and one in front of the key. Where it does not FitsAccessText, the doubled underscores alone.

public string ForAccessText { get; }

Property Value

string

Shown

The caption as shown, its & markers taken out.

public string Shown { get; init; }

Property Value

string