XNAInterfaceComponents.Components.Component.GetScreenBounds C# (CSharp) Method

GetScreenBounds() public method

Gets the location on the screen of this component.
public GetScreenBounds ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle
        public Rectangle GetScreenBounds()
        {
            if (this.parent != null)
            {
                Point screenLocation = parent.RequestScreenLocation(this.GetLocation());
                return new Rectangle(screenLocation.X, screenLocation.Y, this.bounds.Width, this.bounds.Height);
            }
            else return this.bounds;
        }