System.Windows.Automation.WindowPattern.SetWindowVisualState C# (CSharp) Method

SetWindowVisualState() public method

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