Table of Contents

Method GetAttributeValue

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

GetAttributeValue(string, SvgAttributeStringType)

Gets an attribute of this element as a string.

string GetAttributeValue(string name, SvgAttributeStringType type)

Parameters

name string

The name of the attribute.

type SvgAttributeStringType

The string type.

Returns

string

The value of the attribute.

Remarks

Throws an exception if the attribute name is not valid on this element.
Throws an exception if the attribute cannot be expressed as the specified string type.
Throws an exception if the attribute is not specified.

GetAttributeValue(string, SvgAttributePodType, Span<byte>)

Gets an attribute of this element as a POD (plain old data) type.

void GetAttributeValue(string name, SvgAttributePodType type, Span<byte> value)

Parameters

name string

The name of the attribute.

type SvgAttributePodType

The POD type of the value.

value Span<byte>

The buffer to receive the value.

Remarks

Throws an exception if the attribute is not specified.
Throws an exception if the attribute name is not valid on this element.
Throws an exception if the attribute cannot be expressed as the specified POD type.