예제 #1
0
 public ListBoxItemAccessibleObject(ListBox owningListBox, object itemEntry, ListBoxAccessibleObject owningAccessibleObject)
 {
     _owningListBox          = owningListBox;
     _itemEntry              = (ItemArray.Entry)itemEntry;
     _owningAccessibleObject = owningAccessibleObject;
     _systemIAccessible      = owningAccessibleObject.GetSystemIAccessibleInternal();
 }
예제 #2
0
 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]);
            }
예제 #4
0
 public ListBoxItemAccessibleObject(ListBox owningListBox, ItemArray.Entry itemEntry, ListBoxAccessibleObject owningAccessibleObject)
 {
     _owningListBox          = owningListBox.OrThrowIfNull();
     _itemEntry              = itemEntry.OrThrowIfNull();
     _owningAccessibleObject = owningAccessibleObject.OrThrowIfNull();
 }
예제 #5
0
 private protected virtual ListBoxItemAccessibleObject CreateItemAccessibleObject(ListBox listBox, ItemArray.Entry item)
 => new(listBox, item, this);
예제 #6
0
 public CheckedListBoxItemAccessibleObject(CheckedListBox owningCheckedListBox, ItemArray.Entry item, CheckedListBoxAccessibleObject owningAccessibleObject) : base(owningCheckedListBox, item, owningAccessibleObject)
 {
     _owningCheckedListBox = owningCheckedListBox;
 }