AtspiUiaSource.Element.AddEvents C# (CSharp) Method

AddEvents() protected method

protected AddEvents ( bool fromElementConstructor ) : void
fromElementConstructor bool
return void
		protected virtual void AddEvents (bool fromElementConstructor)
		{
			// TODO: Only listen for events where we have
			// PropertyChange listeners for them
			if (accessible.ObjectEvents != null)
				accessible.ObjectEvents.BoundsChanged += OnBoundsChanged;
			if (SupportsGrid ())
				patterns.Add (new GridEventHandler (this));
			if (SupportsRangeValue ())
				patterns.Add (new RangeValueEventHandler (this));
			if (SupportsSelection ())
				patterns.Add (new SelectionEventHandler (this, new SelectionSource (this)));
			if (SupportsText ())
				patterns.Add (new TextEventHandler (this));
			if (SupportsValue ())
				patterns.Add (new ValueEventHandler (this));
		}