SamplerStateCollection.Item Property
Gets a specific SamplerState object using an index value.
Syntax
'Declaration
Public Property Item ( _
index As Integer _
) As SamplerState
public SamplerState this [
int index
] { get; set; }
public:
property SamplerState default [Int32] {
SamplerState get (int index);
void set (SamplerState value);
}
Property Value
Type: SamplerState
The SamplerState object at the requested index.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The index for this vertex stream is invalid. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
SamplerStateCollection Class
SamplerStateCollection Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone