Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Interface IAttr

Defines a common interface for SVG attributes.

Inherited Members
IEquatable<IAttr>.Equals(IAttr)
Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public interface IAttr : IEquatable<IAttr>

Properties

| Edit this page View Source

IsConstant

Gets a value indicating whether the attribute is constant.

Declaration
bool IsConstant { get; }
Property Value
Type Description
bool
| Edit this page View Source

Name

Gets the name of the attribute.

Declaration
string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

ShouldBeSerialized

Gets a value indicating whether the attribute should be serialized.

Declaration
bool ShouldBeSerialized { get; }
Property Value
Type Description
bool
Remarks

This property determines whether the attribute should be included in the serialization process.

Methods

| Edit this page View Source

SetBySerializer(string)

Used by the serializer to set the value of the attribute from an XML string.

Declaration
void SetBySerializer(string xmlString)
Parameters
Type Name Description
string xmlString

The XML string to set the value from.

| Edit this page View Source

ToXmlString()

Converts the attribute to an XML string.

Declaration
string ToXmlString()
Returns
Type Description
string

The attribute as an XML string.