Axiom.RenderSystems.Xna.XnaRenderWindow.this C# (CSharp) Method

this() public method

public this ( string attribute ) : object
attribute string
return object
		public override object this[ string attribute ]
		{
			get
			{
				if ( string.Equals(attribute, "XNABACKBUFFER", StringComparison.CurrentCultureIgnoreCase ))
				{
						return this._renderSurface;
				}
				if ( string.Equals(attribute, "XNADEVICE", StringComparison.CurrentCultureIgnoreCase ))
				{
						return Driver.XnaDevice;
				}
				if ( string.Equals(attribute, "WINDOW", StringComparison.CurrentCultureIgnoreCase ))
				{
						return this._windowHandle;
				}
				if ( string.Equals(attribute, "XNAZBUFFER", StringComparison.CurrentCultureIgnoreCase ))
				{
                        return this._renderSurface.DepthStencilFormat;
				}
				return new NotSupportedException( "There is no Xna RenderWindow custom attribute named " + attribute );
			}
		}