Class USADriveIdJurisdSubfile

Class USADriveIdJurisdSubfile

Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.12.0)

Class for Jurisdiction specific fields for USA DL

public class USADriveIdJurisdSubfile

Inheritance

object USADriveIdJurisdSubfile

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

USADriveIdJurisdSubfile()

public USADriveIdJurisdSubfile()

Properties

Count

Returns number of data elements

public int Count { get; }

Property Value

int

this[string]

Indexing by 3-letter element id

public USADriveIdJurisdSubfile.DataElement this[string id] { get; set; }

Property Value

USADriveIdJurisdSubfile . DataElement

this[int]

Indexing by index number

public USADriveIdJurisdSubfile.DataElement this[int index] { get; set; }

Property Value

USADriveIdJurisdSubfile . DataElement

Methods

AddOrReplace(DataElement)

Adds new DataElement or replaces it if ElementID already exists.

public USADriveIdJurisdSubfile.DataElement AddOrReplace(USADriveIdJurisdSubfile.DataElement node)

Parameters

node USADriveIdJurisdSubfile . DataElement

DataElement to add

Returns

USADriveIdJurisdSubfile . DataElement

Added/replaced data element

AddOrReplace(string, string)

Adds a new DataElement with the specified identifier and value, or replaces the existing element if an entry with the same ElementID is already present.

public USADriveIdJurisdSubfile.DataElement AddOrReplace(string id, string value)

Parameters

id string

A 3-letter identifier that uniquely specifies the jurisdiction-related data element.

value string

The text value assigned to the data element; this value will overwrite the existing one if the element already exists.

Returns

USADriveIdJurisdSubfile . DataElement

The DataElement instance that was added to the collection or updated in place.

Clear()

Clears all data elements

public void Clear()

FindDataElement(string, bool)

Searches for data element by 3-letter id

public USADriveIdJurisdSubfile.DataElement FindDataElement(string id, bool isOpenOrCreate)

Parameters

id string

3-letter id

isOpenOrCreate bool

If true, it will be created if not found

Returns

USADriveIdJurisdSubfile . DataElement

Found data element

Insert(int, DataElement)

Inserts the specified DataElement at the given index. If a DataElement with the same ElementID already exists, it will be replaced.

public USADriveIdJurisdSubfile.DataElement Insert(int index, USADriveIdJurisdSubfile.DataElement node)

Parameters

index int

The zero-based index at which the element should be inserted.

node USADriveIdJurisdSubfile . DataElement

The DataElement instance to insert or replace at the target position.

Returns

USADriveIdJurisdSubfile . DataElement

The DataElement that was inserted or used to replace an existing entry.

RemoveAt(int)

Tries to remove element at index

public bool RemoveAt(int index)

Parameters

index int

index number

Returns

bool

true if successful, false if out of range

RemoveAt(string)

Tries to remove element with 3-letter id

public bool RemoveAt(string id)

Parameters

id string

3-letter id

Returns

bool

true if successful, false if no such id