|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Accessibility;
using MSAALayer;
namespace Office2007UIModel
{
public class OfficeToolBar : OfficeUIItem
{
Dictionary<string, OfficeUIItem> _controlList = new Dictionary<string, OfficeUIItem>();
public Dictionary<string, OfficeUIItem> Controls
{
get
{
return _controlList;
}
}
public OfficeToolBar(IAccessible accessibleObject)
: base(accessibleObject)
{
PopulateControlList();
}
public OfficeToolBar(IAccessible parentAccObject, string name, bool ignoreInvisible)
: base(parentAccObject, name, ignoreInvisible)
{
PopulateControlList();
}
public OfficeToolBar(IAccessible parentAccObject, string name, AccessibleUIItemType uiItemType, bool ignoreInvisible)
: base(parentAccObject, name, uiItemType, ignoreInvisible)
{
PopulateControlList();
}
private void PopulateControlList()
{
_controlList.Clear();
foreach (var msaaUIItem in GetChildren())
{
if (!string.IsNullOrEmpty(msaaUIItem.Properties.Name))
{
_controlList.Add(msaaUIItem.Properties.Name, new OfficeUIItem(msaaUIItem.Accessible));
}
}
}
public void ReloadControls()
{
PopulateControlList();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.