Class PreserveAspectRatioAttr
Represents an attribute for setting 'preserveAspectRatio' attribute values for an SVG document.
Inherited Members
Namespace: OpenSvg.Attributes
Assembly: OpenSvg.dll
Syntax
public class PreserveAspectRatioAttr : Attr<AspectRatio>, IAttr, IEquatable<IAttr>, IEquatable<Attr<AspectRatio>>
Constructors
| Edit this page View SourcePreserveAspectRatioAttr()
Initializes a new instance of the PreserveAspectRatioAttr class.
Declaration
public PreserveAspectRatioAttr()
Methods
| Edit this page View SourceDeserialize(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
| Edit this page View SourceSerialize(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. |