Which value should you configure the State property to return?

You are adding accessibility functionality to a custom, owner-drawn control named Legend. You create a class named AccessibleLegend, which is derived from the AccessibleObject class. The Legend control overrides the GetChild method and returns an AccessibleLegend object. You need to ensure that when the Legend control is disabled, the control still returns the appropriate value for the State property of the AccessibleLegend object. Which value should you configure the State property to return?

You are adding accessibility functionality to a custom, owner-drawn control named Legend. You create a class named AccessibleLegend, which is derived from the AccessibleObject class. The Legend control overrides the GetChild method and returns an AccessibleLegend object. You need to ensure that when the Legend control is disabled, the control still returns the appropriate value for the State property of the AccessibleLegend object. Which value should you configure the State property to return?

A.
AccessibleStates.Invisible

B.
AccessibleStates.Protected

C.
AccessibleStates.ReadOnly

D.
AccessibleStates.Unavailable



Leave a Reply 0

Your email address will not be published. Required fields are marked *