[]
Represents a rectangle in user space that should be mapped to the bounds of the SVG viewport established by the given element.
public struct SvgViewBox : IEquatable<SvgViewBox>
Initializes a new instance of the SvgViewBox struct from a System.Drawing.RectangleF.
public SvgViewBox(RectangleF rect)
rect
System.Drawing.RectangleFInitializes a new instance of the SvgViewBox struct.
public SvgViewBox(float minX, float minY, float width, float height)
minX
floatminY
floatwidth
floatheight
floatGets or sets the height of the viewport.
public float Height { get; set; }
Gets or sets the position where the viewport starts horizontally.
public float MinX { get; set; }
Gets or sets the position where the viewport starts vertically.
public float MinY { get; set; }
Gets or sets the width of the viewport.
public float Width { get; set; }
Determines whether the specified SvgViewBox is equal to this instance.
public bool Equals(SvgViewBox other)
other
SvgViewBoxDetermines whether the specified object is equal to this instance.
public override bool Equals(object obj)
obj
objectReturns a hash code for this struct.
public override int GetHashCode()
Returns a System.Drawing.RectangleF corresponding to the current SvgViewBox.
public RectangleF ToRectangleF()
Returns a string that represents the current struct.
public override string ToString()