System.Windows.Automation.ExpandCollapsePattern.Collapse C# (CSharp) Method

Collapse() public method

public Collapse ( ) : void
return void
        public void Collapse()
        {
                        try
            {
this._pattern.Collapse();            }
            catch (System.Runtime.InteropServices.COMException e)
            {
                Exception newEx; if (Utility.ConvertException(e, out newEx)) { throw newEx; } else { throw; }
            }
        }

Usage Example

Example #1
0
 private static void CollapseList(ExpandCollapsePattern expandCollapsePattern)
 {
     expandCollapsePattern.Collapse();
     Thread.Sleep(50);
 }