StructureAttribute
Panoramica
StructureAttribute è una classe in Aspose.PDF FOSS per .NET.
Un singolo attributo di struttura tagged-PDF (chiave più un valore tipizzato).
Questa classe fornisce 10 metodi per lavorare con oggetti StructureAttribute nei programmi .NET. I metodi disponibili includono: GetArrayNumberValue, GetNameValue, GetNumberValue, GetStringValue, SetArrayNumberValue, SetColorValue, SetNameValue, SetNumberValue, SetStringValue, StructureAttribute. Tutti i membri pubblici sono accessibili a qualsiasi applicazione .NET dopo aver installato il pacchetto Aspose.PDF FOSS per .NET. Proprietà: Key.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
Key | AttributeKey | Lettura | La chiave dell’attributo. |
Metodi
| Firma | Descrizione |
|---|---|
StructureAttribute(key: AttributeKey) | Crea un attributo per la chiave senza ancora un valore. |
SetNameValue(name: AttributeName) | Imposta un valore /Name. |
SetNumberValue(value: double) | Imposta un valore numerico. |
SetArrayNumberValue(value: double?[]) | Imposta un valore di array di numeri. |
SetColorValue(color: Aspose.Pdf.Color) | Imposta un valore di colore (memorizzato come array RGB a 3 componenti). |
SetStringValue(value: string) | Imposta un valore stringa. |
GetNameValue() | Il valore /Name, o null quando l’attributo contiene un altro tipo. |
GetNumberValue() | Il valore numerico, o null quando l’attributo contiene un altro tipo. |
GetArrayNumberValue() | Il valore array-of-number, o null quando l’attributo contiene un altro tipo. |
GetStringValue() | Il valore stringa, o null quando l’attributo contiene un altro tipo. |