public ListBoxItemAccessibleObject(ListBox owningListBox, object itemEntry, ListBoxAccessibleObject owningAccessibleObject) { _owningListBox = owningListBox; _itemEntry = (ItemArray.Entry)itemEntry; _owningAccessibleObject = owningAccessibleObject; _systemIAccessible = owningAccessibleObject.GetSystemIAccessibleInternal(); }
public ListBoxItemAccessibleObject(ListBox owningListBox, ItemArray.Entry itemEntry, ListBoxAccessibleObject owningAccessibleObject) { _owningListBox = owningListBox ?? throw new ArgumentNullException(nameof(owningListBox)); _itemEntry = itemEntry ?? throw new ArgumentNullException(nameof(itemEntry)); _owningAccessibleObject = owningAccessibleObject ?? throw new ArgumentNullException(nameof(owningAccessibleObject)); _systemIAccessible = owningAccessibleObject.GetSystemIAccessibleInternal(); }
public override AccessibleObject GetChild(int index) { if (index < 0 || index >= _owningListBox.Items.Count) { return(null); } ItemArray.Entry item = _owningListBox.Items.InnerArray.Entries[index]; if (!_itemAccessibleObjects.ContainsKey(item)) { _itemAccessibleObjects.Add(item, new ListBoxItemAccessibleObject(_owningListBox, item, this)); } return(_itemAccessibleObjects[item]); }
public ListBoxItemAccessibleObject(ListBox owningListBox, ItemArray.Entry itemEntry, ListBoxAccessibleObject owningAccessibleObject) { _owningListBox = owningListBox.OrThrowIfNull(); _itemEntry = itemEntry.OrThrowIfNull(); _owningAccessibleObject = owningAccessibleObject.OrThrowIfNull(); }
private protected virtual ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.Entry item) => new(listBox, item, this);
public CheckedListBoxItemAccessibleObject(CheckedListBox owningCheckedListBox, ItemArray.Entry item, CheckedListBoxAccessibleObject owningAccessibleObject) : base(owningCheckedListBox, item, owningAccessibleObject) { _owningCheckedListBox = owningCheckedListBox; }