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

GetBehaviorRealization() private method

private GetBehaviorRealization ( AutomationPattern behavior ) : IProviderBehavior
behavior System.Windows.Automation.AutomationPattern
return IProviderBehavior
		internal override IProviderBehavior GetBehaviorRealization (AutomationPattern behavior)
		{
			if (behavior == SelectionPatternIdentifiers.Pattern)
				return new SelectionProviderBehavior (this);
			else if (behavior == ScrollPatternIdentifiers.Pattern)
				return new ScrollProviderBehavior (this);
			else 
				return null;
		}