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

Class FloatAttr

Represents an attribute for floating-point values.

Inheritance
object
Attr<float>
FloatAttr
Implements
IAttr
IEquatable<IAttr>
IEquatable<Attr<float>>
Inherited Members
Attr<float>.DefaultValue
Attr<float>.Name
Attr<float>.IsConstant
Attr<float>.ShouldBeSerialized
Attr<float>.SetBySerializer(string)
Attr<float>.ToXmlString()
Attr<float>.DefaultEquals(float)
Attr<float>.ValueEquals(float)
Attr<float>.Equals(Attr<float>)
Attr<float>.Set(float)
Attr<float>.Get()
Attr<float>.ToString()
Attr<float>.Equals(IAttr)
Attr<float>.GetHashCode()
Attr<float>.Equals(object)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public class FloatAttr : Attr<float>, IAttr, IEquatable<IAttr>, IEquatable<Attr<float>>

Constructors

| Edit this page View Source

FloatAttr(string)

Initializes a new instance of the FloatAttr class.

Declaration
public FloatAttr(string name)
Parameters
Type Name Description
string name

The name of the attribute.

| Edit this page View Source

FloatAttr(string, float)

Initializes a new instance of the FloatAttr class.

Declaration
public FloatAttr(string name, float defaultValue)
Parameters
Type Name Description
string name

The name of the attribute.

float defaultValue

The default value of the attribute.

Methods

| Edit this page View Source

Deserialize(string)

Deserializes an XML string to the value of the attribute.

Declaration
protected override float Deserialize(string xmlString)
Parameters
Type Name Description
string xmlString

The XML string to deserialize.

Returns
Type Description
float

The deserialized value.

Overrides
Attr<float>.Deserialize(string)
| Edit this page View Source

Serialize(float)

Serializes the value of the attribute to an XML string.

Declaration
protected override string Serialize(float value)
Parameters
Type Name Description
float value

The value to serialize.

Returns
Type Description
string

The XML string representation of the value.

Overrides
Attr<float>.Serialize(float)

Implements

IAttr
IEquatable<T>
IEquatable<T>