Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the Texture at the specified sampler number.
Syntax
'Declaration
Public Property Item ( _
index As Integer _
) As Texture
public Texture this [
int index
] { get; set; }
public:
property Texture default [Int32] {
Texture get (int index);
void set (Texture value);
}
Property Value
Type: Texture
The Texture at the specified index.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The sampler number is invalid. It is either less than zero or greater than the maximum number of textures available for the graphics device. |
ObjectDisposedException | Item was called after the GraphicsDevice was disposed. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
GraphicsDevice.SamplerStates Property
GraphicsDevice.Textures Property
GraphicsDevice.VertexTextures Property
TextureCollection Class
TextureCollection Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone