Provider for the color-bar fragments within the TriColor control.
Inheritance: BaseFragmentProvider, Interop.UIAutomationCore.ISelectionItemProvider
Esempio n. 1
0
        // Get the current selection as an array of providers
        public IRawElementProviderSimple[] GetSelection()
        {
            // Create the fragment for the current value
            var selectedFragment =
                new TriColorFragmentProvider(_control, this, _control.Value);

            // Return it as a single-element array
            return(new IRawElementProviderSimple[1] {
                selectedFragment
            });
        }
        // Get the current selection as an array of providers
        public IRawElementProviderSimple[] GetSelection()
        {
            // Create the fragment for the current value
            var selectedFragment =
                new TriColorFragmentProvider(_control, this, _control.Value);

            // Return it as a single-element array
            return new IRawElementProviderSimple[1] {selectedFragment};
        }