UIAutomation.UiaTableItemPattern.TableItemPatternInformation.GetRowHeaderItems C# (CSharp) Method

GetRowHeaderItems() public method

public GetRowHeaderItems ( ) : IUiElement[]
return IUiElement[]
            public IUiElement[] GetRowHeaderItems()
            {
                // return (AutomationElement[])this._el.GetPatternPropertyValue(TableItemPattern.RowHeaderItemsProperty, this._useCache);
                // 20140302
                // AutomationElement[] nativeElements = (AutomationElement[])this._tableItemPattern.GetParentElement().GetPatternPropertyValue(TableItemPattern.RowHeaderItemsProperty, this._useCache);
                var nativeElements = (classic.AutomationElement[])_tableItemPattern.GetParentElement().GetPatternPropertyValue(classic.TableItemPattern.RowHeaderItemsProperty, _useCache);
                IUiEltCollection tempCollection = AutomationFactory.GetUiEltCollection(nativeElements);
                if (null == tempCollection || 0 == tempCollection.Count) {
                    return new UiElement[] {};
                } else {
                    return tempCollection.Cast<IUiElement>().ToArray();
                }
            }