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

Class AbsoluteOrRatioAttr

Represents an attribute that can hold either an absolute or a ratio value.

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

Constructors

| Edit this page View Source

AbsoluteOrRatioAttr(string)

Initializes a new instance of the AbsoluteOrRatioAttr class.

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

The name of the attribute.

Methods

| Edit this page View Source

Deserialize(string)

Deserializes an XML string to the value of the attribute.

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

The XML string to deserialize.

Returns
Type Description
AbsoluteOrRatio

The deserialized value.

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

Serialize(AbsoluteOrRatio)

Serializes the value of the attribute to an XML string.

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

The value to serialize.

Returns
Type Description
string

The XML string representation of the value.

Overrides
Attr<AbsoluteOrRatio>.Serialize(AbsoluteOrRatio)

Implements

IAttr
IEquatable<T>
IEquatable<T>