Class AbsoluteOrRatioAttr
Represents an attribute that can hold either an absolute or a ratio value.
Inherited Members
Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public class AbsoluteOrRatioAttr : Attr<AbsoluteOrRatio>, IAttr, IEquatable<IAttr>, IEquatable<Attr<AbsoluteOrRatio>>
Constructors
| Edit this page View SourceAbsoluteOrRatioAttr(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 SourceDeserialize(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
| Edit this page View SourceSerialize(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. |