Struct SvgViewBox
It is often desirable to specify that a given set of graphics stretch to fit a particular container element. The viewBox attribute provides this capability.
Inherited Members
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Svg
Assembly: Svg.dll
Syntax
[TypeConverter(typeof(SvgViewBoxConverter))]
public struct SvgViewBox
Constructors
|
Improve this Doc
View Source
SvgViewBox(Single, Single, Single, Single)
Initializes a new instance of the SvgViewBox struct.
Declaration
public SvgViewBox(float minX, float minY, float width, float height)
Parameters
Fields
|
Improve this Doc
View Source
Empty
Declaration
public static readonly SvgViewBox Empty
Field Value
Properties
|
Improve this Doc
View Source
Height
Gets or sets the height of the viewport.
Declaration
public float Height { readonly get; set; }
Property Value
|
Improve this Doc
View Source
MinX
Gets or sets the position where the viewport starts horizontally.
Declaration
public float MinX { readonly get; set; }
Property Value
|
Improve this Doc
View Source
MinY
Gets or sets the position where the viewport starts vertically.
Declaration
public float MinY { readonly get; set; }
Property Value
|
Improve this Doc
View Source
Width
Gets or sets the width of the viewport.
Declaration
public float Width { readonly get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public void AddViewBoxTransform(SvgAspectRatio aspectRatio, ISvgRenderer renderer, SvgFragment frag)
Parameters
|
Improve this Doc
View Source
Equals(SvgViewBox)
Declaration
public bool Equals(SvgViewBox other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(SvgViewBox, SvgViewBox)
Declaration
public static bool operator ==(SvgViewBox lhs, SvgViewBox rhs)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(SvgViewBox to RectangleF)
Declaration
public static implicit operator RectangleF(SvgViewBox value)
Parameters
Returns
| Type |
Description |
| RectangleF |
The result of the conversion.
|
|
Improve this Doc
View Source
Implicit(RectangleF to SvgViewBox)
Declaration
public static implicit operator SvgViewBox(RectangleF value)
Parameters
Returns
| Type |
Description |
| SvgViewBox |
The result of the conversion.
|
|
Improve this Doc
View Source
Inequality(SvgViewBox, SvgViewBox)
Declaration
public static bool operator !=(SvgViewBox lhs, SvgViewBox rhs)
Parameters
Returns