Mono.UIAutomation.Winforms.ListBoxProvider.GetProviderPropertyValue C# (CSharp) Method

GetProviderPropertyValue() protected method

protected GetProviderPropertyValue ( int propertyId ) : object
propertyId int
return object
		protected override object GetProviderPropertyValue (int propertyId)
		{
			if (propertyId == AutomationElementIdentifiers.ControlTypeProperty.Id)
				return ControlType.List.Id;
			else if (propertyId == AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id)
				return true;
			else if (propertyId == AutomationElementIdentifiers.NameProperty.Id) {
				if (string.IsNullOrEmpty (listboxControl.AccessibleName))
					return Helper.StripAmpersands (listboxControl.Text);
				else
					return listboxControl.AccessibleName;
			} else
				return base.GetProviderPropertyValue (propertyId);
		}