AccessibilityInfo
public readonly struct AccessibilityInfoPer-mark accessibility metadata. Mirrors Swift Charts’
.accessibilityLabel, .accessibilityValue, .accessibilityHidden,
and .accessibilityIdentifier modifiers.
Remarks
Section titled “Remarks”The chart layer surfaces this metadata through ChartGuru.Chart.GetAccessibleMarks
(and the accessibility proxy on UITK ChartGuruElement) so an external
assistive-technology bridge can read it. The fields are deliberately string-based
to keep the struct platform-agnostic and serializable.
Fields
Section titled “Fields”
public readonly string LabelReturns
System.String
public readonly string ValueReturns
System.String
Identifier
Section titled “Identifier”public readonly string IdentifierReturns
System.String
Hidden
Section titled “Hidden”public readonly bool HiddenReturns
System.Boolean
Default
Section titled “Default”public static readonly AccessibilityInfo DefaultReturns
ChartGuru.AccessibilityInfo
Constructors
Section titled “Constructors”
AccessibilityInfo(string, string, string, bool)
Section titled “AccessibilityInfo(string, string, string, bool)”public AccessibilityInfo(string label = null, string value = null, string identifier = null, bool hidden = false)Creates assistive metadata for one mark, optionally hiding it from accessibility navigation while leaving visual rendering unchanged.
Parameters
| Name | Type |
|---|---|
label |
System.String |
value |
System.String |
identifier |
System.String |
hidden |
System.Boolean |
Methods
Section titled “Methods”
WithLabel(string)
Section titled “WithLabel(string)”public AccessibilityInfo WithLabel(string label)Returns a copy with a replacement assistive label while preserving the remaining accessibility metadata.
Parameters
| Name | Type |
|---|---|
label |
System.String |
Returns
ChartGuru.AccessibilityInfo
WithValue(string)
Section titled “WithValue(string)”public AccessibilityInfo WithValue(string value)Returns a copy with a replacement assistive value while preserving the remaining accessibility metadata.
Parameters
| Name | Type |
|---|---|
value |
System.String |
Returns
ChartGuru.AccessibilityInfo
WithIdentifier(string)
Section titled “WithIdentifier(string)”public AccessibilityInfo WithIdentifier(string id)Returns a copy with a stable assistive identifier while preserving the remaining accessibility metadata.
Parameters
| Name | Type |
|---|---|
id |
System.String |
Returns
ChartGuru.AccessibilityInfo
WithHidden(bool)
Section titled “WithHidden(bool)”public AccessibilityInfo WithHidden(bool hidden)Returns a copy that includes or omits the mark from assistive chart navigation.
Parameters
| Name | Type |
|---|---|
hidden |
System.Boolean |
Returns
ChartGuru.AccessibilityInfo
Properties
Section titled “Properties”
IsEmpty
Section titled “IsEmpty”public bool IsEmpty { get; }Returns
System.Boolean