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

Class ViewBoxAttr

Represents an attribute for setting the viewbox for an SVG document.

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

Constructors

| Edit this page View Source

ViewBoxAttr()

Initializes a new instance of the ViewBoxAttr class.

Declaration
public ViewBoxAttr()

Methods

| Edit this page View Source

Deserialize(string)

Deserializes an XML string to the value of the attribute.

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

The XML string to deserialize.

Returns
Type Description
BoundingBox

The deserialized value.

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

Serialize(BoundingBox)

Serializes the value of the attribute to an XML string.

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

The value to serialize.

Returns
Type Description
string

The XML string representation of the value.

Overrides
Attr<BoundingBox>.Serialize(BoundingBox)

Implements

IAttr
IEquatable<T>
IEquatable<T>