---
Product: Aspose.3D
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/net/VertexField
---

# VertexField

## Overview

`VertexField` is a class in Aspose.3D FOSS for .NET.
Inherits from: `IComparable`, `IEquatable`.

VertexField class lets developers define a vertex field by specifying data type, semantic, index, alias, offset, and size, and provides hashing, equality, and comparison operations.

This class provides 5 methods for working with VertexField objects in .NET programs.
Available methods include: `CompareTo`, `Equals`, `GetHashCode`, `ToString`, `VertexField`.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: `Alias`, `DataType`, `Index`, `Offset`, `Semantic`, `Size`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `DataType` | `VertexFieldDataType` | Read | Gets the data type. |
| `Semantic` | `VertexFieldSemantic` | Read | Gets the semantic. |
| `Alias` | `string` | Read | Gets the alias. |
| `Index` | `int` | Read | Gets the index. |
| `Offset` | `int` | Read | Gets the offset. |
| `Size` | `int` | Read | Gets the size. |

## Methods

| Signature | Description |
|-----------|-------------|
| `VertexField(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, index: int, alias: string, offset: int, size: int)` | Initializes a new vertex field with data type, semantic, index, alias, offset, and size |
| `GetHashCode()` | Returns a hash code for the vertex field instance |
| `Equals(obj: object?)` | Checks equality with another object |
| `Equals(other: VertexField)` |  |
| `CompareTo(other: VertexField)` | Compares this vertex field to another for ordering |
| `ToString()` | Returns a string representation of the vertex field |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)