UIAutomation.Preferences.Preferences C# (CSharp) Method

Preferences() static private method

static private Preferences ( ) : System.Drawing
return System.Drawing
        static Preferences()
        {
            Highlight = true;
            HighlighterColor = Color.Red;
            HighlighterBorder = 3;
            
            HighlightParent = true;
            HighlighterColorParent = Color.HotPink;
            HighlighterBorderParent = 5;
            
//            HighlightFirstChild = false; //true;
//            HighlighterColorFirstChild = System.Drawing.Color.Yellow;
//            HighlighterBorderFirstChild = 3;
            
            // 20130423
            HighlightCheckedControl = true;
            HighlighterColorCheckedControl = Color.Blue;
            HighlighterBorderCheckedControl = 3;
            
            ShowExecutionPlan = false;
            ShowInfoToolTip = true;
            
            Timeout = 5000;
            AfterFailTurboTimeout = 2000;
            // 20120828
            TimeoutSetByCustomer = false;
            
            DisableExactSearch = true;
            DisableWildCardSearch = false;
            DisableWin32Search = false;
            
            ScreenShotFolder = 
                Environment.GetEnvironmentVariable(
                    "TEMP",
                    EnvironmentVariableTarget.User);
            //OnErrorScreenShot = false;
            OnErrorScreenShot = true; // 20120819
            OnErrorScreenShotFormat = ImageFormat.Jpeg;
            OnSuccessScreenShot = false;
            OnSuccessScreenShotFormat = ImageFormat.Jpeg;
            HideHighlighterOnScreenShotTaking = true;
            
            TranscriptInterval = 200;
            OnSuccessDelay = 500;
            OnSuccessAction = null;
            OnErrorDelay = 500;
            OnErrorAction = null;
            //OnSleepDelay = 1000;
            // 20140127
            // OnSleepDelay = 500;
            // OnSleepDelay = 100;
            OnSleepAction = null;
            OnClickDelay = 0;
            Log = true;
            LogPath = 
                Environment.GetEnvironmentVariable(
                    "TEMP",
                    EnvironmentVariableTarget.User) + 
                @"\UIAutomation.log";
            // 20130430
            AutoLog = false;
            MaximumErrorCount = 256;
            MaximumEventCount = 256;
            Mode.Profile = Modes.Presentation;
            
            // 20140127
            OnSleepDelay = 50;
            
            // CacheRequest
            //FromCache = true;
            FromCache = false;
            // 20140208
            CacheRequestCalled = false;
            
            // Test Case Management
            EveryCmdletAsTestResult = false;
            FailTestResultIfFailInTestSequence = true;
            
            ClickOnControlByCoordX = 5; //3;
            ClickOnControlByCoordY = 5; //3;
            
            // 20130105
            PerformWin32ClickOnFail = true;
            
            // 20130320
            // Wizard
            OnSelectWizardStepDelay = 100;
            
            // 20130322
            BannerLeft = 100;
            BannerTop = 100;
            BannerWidth = 600;
            BannerHeight = 100; //80;
            // 20130327
            BannerFontSize = 20;
            
            // 20131227
            UseElementsPatternObjectModel = true;
            UseElementsSearchObjectModel = true;
            
            // 20140124
            ModuleEcoSystem =
                ScriptBlock.Create(
                    @"$Keyboard = (New-Object WindowsInput.InputSimulator).Keyboard; " +
                    @"$Mouse = (New-Object WindowsInput.InputSimulator).Mouse; ");
            
            // 20140312
            UseElementsCached = false;
            UseElementsCurrent = true;
        }
        
Preferences