MATLABfromCSharp.MainControl.getAttributes C# (CSharp) Method

getAttributes() public method

Uses the Element Path to access the Attributes.
The AFTreeView is implemented with ToolTipText is the path to the selected Element.
public getAttributes ( string path ) : AFAttributes
path string The pathway to the Element
return AFAttributes
        public AFAttributes getAttributes(string path)
        {
            mainForm.Status("Getting Attributes...");
            List<string> searchPaths = new List<string> { path };
            AFKeyedResults<string, AFElement> result = AFElement.FindElementsByPath(searchPaths, null);
            AFElement elem = result[path];
            AFAttributes atts = elem.Attributes;
            return atts;
        }