---
title: "DgnTagValueElement"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.dgn.dgnelements/dgntagvalueelement/"
product: "Aspose.CAD for Java"
description: "Represents 'Tag Value' element"
---


**Inheritance:** java.lang.Object, DgnElement

Represents 'Tag Value' element

## Constructors

| Constructor | Description |
| --- | --- |
| [DgnTagValueElement(byte[] rawData)](#DgnTagValueElement-byte:A) | Initializes a new instance of the DgnTagValueElement class |

## Methods

| Method | Description |
| --- | --- |
| [getTagSet()](#getTagSet) | Gets tag set |
| [getTagIndex()](#getTagIndex) | Gets tag index |
| [getTagLength()](#getTagLength) | Gets tag length |
| [getTagValue()](#getTagValue) | Gets or sets the tag value. |
| [setTagValue(DgnTagValue value)](#setTagValue-com.aspose.cad.fileformats.dgn.DgnTagValue) | Gets or sets the tag value. |

### DgnTagValueElement(byte[] rawData) {#DgnTagValueElement-byte:A}
```java
public DgnTagValueElement(byte[] rawData)
```

Initializes a new instance of the DgnTagValueElement class

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| rawData | byte[] | raw data |

### getTagSet() {#getTagSet}
```java
public long getTagSet()
```

Gets tag set

**Returns:** long

### getTagIndex() {#getTagIndex}
```java
public int getTagIndex()
```

Gets tag index

**Returns:** int

### getTagLength() {#getTagLength}
```java
public int getTagLength()
```

Gets tag length

**Returns:** int

### getTagValue() {#getTagValue}
```java
public final DgnTagValue getTagValue()
```

Gets or sets the tag value.

**Returns:** DgnTagValue - The tag value.

### setTagValue(DgnTagValue value) {#setTagValue-com.aspose.cad.fileformats.dgn.DgnTagValue}
```java
public final void setTagValue(DgnTagValue value)
```

Gets or sets the tag value.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | DgnTagValue | The tag value. |

