viewBox property

Gets a value that indicates how a graphic scales to fit a container element.

Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4.5.28Internet Explorer 9



HRESULT value = object.get_viewBox(ISVGAnimatedRect** p);

Property values

Type: Object

A list of four numbers that specify the minimum x-coordinate, minimum y-coordinate, width, and height values of a rectangle. These values are separated by white space or a comma. The values define a rectangle in user space that is mapped to the bounds of the viewport that the element establishes, considering the element's ISVGFitToViewBox::preserveAspectRatio attribute.

Standards information