[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgViewBox

Struct SvgViewBox

Namespace
GrapeCity.Documents.Svg
Assembly
GcDocs.Imaging.dll

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>
Implements
System.IEquatable<T><SvgViewBox>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

SvgViewBox(RectangleF)

Initializes a new instance of the SvgViewBox struct from a System.Drawing.RectangleF.

public SvgViewBox(RectangleF rect)

Parameters

rect System.Drawing.RectangleF

SvgViewBox(float, float, float, float)

Initializes a new instance of the SvgViewBox struct.

public SvgViewBox(float minX, float minY, float width, float height)

Parameters

minX float
minY float
width float
height float

Properties

Height

Gets or sets the height of the viewport.

public float Height { get; set; }

Property Value

float

MinX

Gets or sets the position where the viewport starts horizontally.

public float MinX { get; set; }

Property Value

float

MinY

Gets or sets the position where the viewport starts vertically.

public float MinY { get; set; }

Property Value

float

Width

Gets or sets the width of the viewport.

public float Width { get; set; }

Property Value

float

Methods

Equals(SvgViewBox)

Determines whether the specified SvgViewBox is equal to this instance.

public bool Equals(SvgViewBox other)

Parameters

other SvgViewBox

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for this struct.

public override int GetHashCode()

Returns

int

ToRectangleF()

Returns a System.Drawing.RectangleF corresponding to the current SvgViewBox.

public RectangleF ToRectangleF()

Returns

System.Drawing.RectangleF

ToString()

Returns a string that represents the current struct.

public override string ToString()

Returns

string