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

Class PreserveAspectRatioAttr

Represents an attribute for setting 'preserveAspectRatio' attribute values for an SVG document.

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

Constructors

| Edit this page View Source

PreserveAspectRatioAttr()

Initializes a new instance of the PreserveAspectRatioAttr class.

Declaration
public PreserveAspectRatioAttr()

Methods

| Edit this page View Source

Deserialize(string)

Deserializes an XML string to the value of the attribute.

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

The XML string to deserialize.

Returns
Type Description
AspectRatio

The deserialized value.

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

Serialize(AspectRatio)

Serializes the value of the attribute to an XML string.

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

The value to serialize.

Returns
Type Description
string

The XML string representation of the value.

Overrides
Attr<AspectRatio>.Serialize(AspectRatio)

Implements

IAttr
IEquatable<T>
IEquatable<T>