Skip to main content
All docs
V25.1
  • ChartControlAccessible Class

    An element in the accessibility tree mapped to the chart control element.

    Namespace: DevExpress.XtraCharts.Accessibility

    Assembly: DevExpress.XtraCharts.v25.1.UI.dll

    NuGet Package: DevExpress.Win.Charts

    Declaration

    public class ChartControlAccessible :
        BaseControlAccessible

    Remarks

    Handle the QueryAccessibleInfo event to obtain the accessible chart element and specify its properties.

    The following code snippet enables the screen reader program to read the class name, element owner, and location of the diagram element:

    ChartControl Accessibility Inspector

    using DevExpress.Accessibility;
    using DevExpress.XtraEditors;
    using System;
    using System.Windows.Forms;
    
    namespace DXApplication2 {
        internal static class Program {
            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            [STAThread]
            static void Main() {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
    
                WindowsFormsSettings.DisableAccessibility = DevExpress.Utils.DefaultBoolean.False;
                DXAccessible.QueryAccessibleInfo += DXAccessible_QueryAccessibleInfo;
    
                Application.Run(new Form1());
            }
    
            private static void DXAccessible_QueryAccessibleInfo(object sender, DXAccessible.QueryAccessibleInfoEventArgs e) {
                var aab = e.GetDXAccessible<BaseAccessible>();
                string description = string.Format("{0}. This is the {1} object, owned by {2}, located at {3}",
                    e.Name, aab.GetType().Name, aab.GetOwner().GetType().Name, aab.ClientBounds);
                e.Name = description;
            }
    
        }
    
    }
    

    Inheritance

    Object
    DevExpress.Accessibility.BaseAccessible
    DevExpress.Accessibility.BaseControlAccessible
    ChartControlAccessible
    See Also