VertexPositionColor Structure

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Describes a custom vertex format structure that contains position and color information.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)

Syntax

'Declaration
Public Structure VertexPositionColor _
    Implements IVertexType
public struct VertexPositionColor : IVertexType

The VertexPositionColor type exposes the following members.

Constructors

  Name Description
Public method VertexPositionColor Initializes a new instance of the VertexPositionColor class.

Top

Methods

  Name Description
Public method Equals Returns a value that indicates whether the current instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public method GetHashCode Gets the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method ToString Retrieves a string representation of this object. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Compares two objects to determine whether they are the same.
Public operatorStatic member Inequality Compares two objects to determine whether they are different.

Top

Fields

  Name Description
Public field Color Identifies the Color dependency property.
Public field Position Identifies the Position dependency property.
Public fieldStatic member VertexDeclaration Identifies the VertexDeclaration dependency property.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IVertexType.VertexDeclaration Gets a vertex declaration.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.