Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
viewBox
Collapse the table of content
Expand the table of content

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

 

Syntax

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft