Export (0) Print
Expand All
a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
Expand Minimize

SVG Property Reference

This section contains the Scalable Vector Graphics (SVG) property reference documentation.

In this section

TopicDescription

a

Gets or sets the a entry of the SVGMatrix.

align

Gets or sets the type of alignment value.

amplitude

Indicates the amplitude of the gamma function.

angle

Gets or sets a value that indicates an angle unit.

animatedInstanceRoot

Gets the animated root of the instance tree of a use element.

animatedNormalizedPathSegList

Gets or sets the normalized animated contents of the d attribute.

animatedPathSegList

Gets or sets the animated contents of the d attribute in a form that matches the SVG syntax.

animatedPoints

Gets or sets the animated contents of the points attribute.

animVal (SVGAnimatedAngle)

Contains the same value as the baseVal property.

animVal (SVGAnimatedBoolean)

Contains the same value as the baseVal property.

animVal (SVGAnimatedEnumeration)

Contains the same value as the baseVal property.

animVal (SVGAnimatedInteger)

Contains the same value as the baseVal property.

animVal (SVGAnimatedLength)

Contains the same value as the baseVal property.

animVal (SVGAnimatedLengthList)

Contains the same value as the baseVal property.

animVal (SVGAnimatedNumber)

Contains the same value as the baseVal property.

animVal (SVGAnimatedNumberList)

Contains the same value as the baseVal property.

animVal (SVGAnimatedPreserveAspectRatio)

Contains the same value as the baseVal property.

animVal (SVGAnimatedRect)

Contains the same value as the baseVal property.

animVal (SVGAnimatedString)

Contains the same value as the baseVal property.

animVal (SVGAnimatedTransformList)

Contains the same value as the baseVal property.

azimuth

Gets the direction angle for the light source on the xy plane (clockwise).

b

Gets or sets the b entry of the SVGMatrix.

baseFrequencyX

Provides a base frequency in the X direction for the turbulence calculation.

baseFrequencyY

Provides a base frequency in the Y direction for the turbulence calculation.

baseVal (SVGAnimatedAngle)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedBoolean)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedEnumeration)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedInteger)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedLength)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedLengthList)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedNumber)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedNumberList)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedPreserveAspectRatio)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedRect)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedString)

Gets or sets the base value of the given attribute before any animations are applied.

baseVal (SVGAnimatedTransformList)

Gets or sets the base value of the given attribute before any animations are applied.

bias

Shifts the range of the filter. This allows representation of values that would otherwise be clamped to 0 or 1.

c

Gets or sets the c entry of the SVGMatrix.

childNodes

Gets an SVGElementInstanceList object that contains all children of this SVGElementInstance object within the instance tree.

className

Gets the names of the classes that are assigned to this object.

clipPath

Sets or retrieves a reference to the SVG graphical object that will be used as the clipping path.

clipPathUnits

Gets or sets the given SVGClipPathElement element.

code

Gets the exception code that is raised.

contentScriptType

Gets the default scripting language of the current document fragment.

contentStyleType

Gets the default style sheet language of the current document.

correspondingElement

Gets the corresponding element that this object is an instance of.

correspondingUseElement

Gets the corresponding use element that this object belongs to.

currentScale

Gets or sets the current scale factor, relative to the initial view (when this property is called from an outermost svg element.

currentTranslate

Gets or sets the current translation factor, relative to the initial view (when this property is called from an outermost svg element).

currentView

cx

Gets or sets the x-coordinate of the center of a circle or an ellipse.

cx (SVGRadialGradientElement)

Gets or sets the x-coordinate for the center of the largest (that is, outermost) circle of a radial gradient.

cy

Gets or sets the y-coordinate of the center of a circle or an ellipse.

cy (SVGRadialGradientElement)

Gets or sets the y-coordinate for the center of the largest (that is, outermost) circle of a radial gradient.

d

Gets or sets the d entry of the SVGMatrix.

diffuseConstant

Defines the diffuse reflection constant.

divisor

Affects the final destination color value of the filter.

dx

Gets the dx attribute on the given element.

dy

Gets the dy attribute on the given element.

e

Gets or sets the e entry of the SVGMatrix.

edgeMode

Determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

elevation

Gets the direction angle for the light source from the xy plane towards the z-axis.

exponent

Indicates the exponent of the gamma function.

externalResourcesRequired

Gets a value that indicates whether referenced resources that are not in the current document are required to correctly render a given element.

f

Gets or sets the f entry of the SVGMatrix.

farthestViewportElement

Gets a value that represents the farthest ancestor svg element.

filter

The filter property is generally used to apply a previously define filter to an applicable element.

filterResX

Corresponds to the X component of the attribute filterRes on the given filter element.

filterResY

Corresponds to the Y component of the attribute filterRes on the given filter element.

filterUnits

Defines the coordinate system for the filter attributes.

firstChild

Gets the first child of this SVGElementInstance object in the instance tree.

focusable

Determines if an element can acquire keyboard focus (that is, receive keyboard events) and be a target for field-to-field navigation actions (such as when a user presses the Tab key).

fx

Gets or sets the x-coordinate for the focal point of a radial gradient.

fy

Gets or sets the y-coordinate for the focal point of a radial gradient.

gradientTransform

Gets a value that contains the definition of an optional, additional transformation from the gradient coordinate system onto the target coordinate system.

gradientUnits

Gets a value that indicates the type of coordinate system that is used because of a transformation.

height

Gets or sets the height of an element.

href

Gets an xlink:href attribute of an element.

id

Standard XML attribute for assigning a unique name to an element.

in1

Identifies input for the given filter primitive.

in2

The second input image to the blending operation.

instanceRoot

Gets the root of the instance tree of a use element.

intercept

Indicates the intercept of the linear function.

k1

A constant used for arithmetic composite operations.

k2

A constant used for arithmetic composite operations.

k3

A constant used for arithmetic composite operations.

k4

A constant used for arithmetic composite operations.

kernelMatrix

The list of numbers that make up the kernel matrix for the convolution.

kernelUnitLengthX

kernelUnitLength indicates the intended distance in current filter units for dx and dy in the surface normal calculation formulas.

kernelUnitLengthY

kernelUnitLength indicates the intended distance in current filter units for dx and dy in the surface normal calculation formulas.

largeArcFlag

Gets or sets the value of the large-arc-flag parameter.

lastChild

Gets the last child of this SVGElementInstance object in the instance tree.

length

Gets the number of SVGElementInstance objects in the list.

lengthAdjust

Gets or sets the lengthAdjust attribute on the given element.

limitingConeAngle

Gets a value that specifies a limiting cone that restricts the region where the light is projected.

markerHeight

Gets the height attribute of the marker element.

markerUnits

Gets or sets the coordinate system for the markerWidth and markerHeight attributes and for the contents of the marker element.

markerWidth

Gets the width attribute of the marker element.

maskContentUnits

Gets the maskContentUnits attribute of the mask element.

maskUnits

Gets the maskUnits attribute of the mask element.

matrix

Gets the matrix that represents this transformation.

media

Gets or sets the destination medium for style information.

meetOrSlice

Gets or sets the type of meet-or-slice value.

message

Gets a description of the exception that is raised.

method

Gets the method attribute on the given textPath element.

mode

Gets a value that indicates one of the image-blending modes.

name

Gets the exception name that is raised.

nearestViewportElement

Gets a value that indicates which element established the current viewport.

newScale

Gets the new scale value of a zoom event.

newTranslate

Gets the new translation values of a zoom event.

nextSibling

Gets the SVGElementInstance object that immediately follows this SVGElementInstance object.

normalizedPathSegList

Gets or sets the normalized static contents of the d attribute.

numberOfItems

Gets or sets the number of items in a list.

numOctaves

Provides the number of noise functions to be added together when calculating the turbulence.

offset

Gets or sets a value that indicates where the gradient stop is placed within the gradient.

operator

Specifies the operation of whether to thin or thicken.

orderX

Indicates the number of cells in each dimension for kernelMatrix.

orderY

Indicates the number of cells in each dimension for kernelMatrix.

orientAngle

Gets the angle of orientation of the marker element.

orientType

Gets the orientation type for a marker element.

ownerSVGElement

Gets the nearest ancestor svg element.

parentNode

Gets the parent of this SVGElementInstance object within the instance tree.

pathLength

pathSegList

Gets or sets the static contents of the d attribute in a form that matches the SVG syntax.

pathSegType

Gets the type of the path segment.

pathSegTypeAsLetter

Gets the type of the path segment, specified by the corresponding one-character command name.

patternContentUnits

Gets or sets the patternContentUnits property on the given pattern element, defining the coordinate system for the contents of the pattern element.

patternTransform

Gets or sets the definition of an optional transformation from the pattern coordinate system onto the target coordinate system.

patternUnits

Gets or sets the patternUnits property on the given pattern element, defining the coordinate system for attributes x, y, width and height.

pixelUnitToMillimeterX

Gets or sets the size of a pixel unit along the x-axis of the viewport.

pixelUnitToMillimeterY

Gets or sets the size of a pixel unit along the y-axis of the viewport.

points

Gets or sets the static contents of the points attribute.

pointsAtX

Gets a value that specifies the x location in the coordinate system established by attribute primitiveUnits on the filter element of the point at which the light source is pointing.

pointsAtY

Gets a value that specifies the y location in the coordinate system established by attribute primitiveUnits on the filter element of the point at which the light source is pointing.

pointsAtZ

Gets a value that specifies the z location in the coordinate system established by attribute primitiveUnits on the filter element of the point at which the light source is pointing.

preserveAlpha

Indicates that the convolution will apply to all channels or just the color channels.

preserveAspectRatio

Gets an XML value that indicates whether to force uniform graphic scaling.

previousScale

Gets the previous scale value of a zoom event.

previousSibling

Gets the SVGElementInstance object that immediately precedes this SVGElementInstance object.

previousTranslate

Gets the previous translation values of a zoom event.

primitiveUnits

Specifies the coordinate system for the various length values within the filter primitives and for the attributes that define the filter primitive subregion. The filter primitives identify a subregion which restricts calculation and rendering of the given filter primitive. The default filter primitive subregion is equal to the filter region.

r (SVGCircleElement)

Gets or sets the radius of a circle.

r (SVGRadialGradientElement)

Gets or sets the radius of a radial gradient.

r1

Gets or sets the x-axis radius for an ellipse that is associated with a path element.

r2

Gets or sets the y-axis radius for an ellipse that is associated with a path element.

radiusX

Specifies the thickening or thinning you want to apply in the X direction.

radiusY

Specifies the thickening or thinning you want to apply in the Y direction.

refX

Gets the refX attribute on the marker element.

refY

Gets the refY attribute on the marker element.

requiredExtensions

Gets a white space-delimited list of required language extensions.

requiredFeatures

Gets or sets a white space-delimited list of feature strings.

result

Provides a reference for the output result of a filter.

rootElement

Gets the root svg element in the document hierarchy.

rotate

Gets or sets the supplemental character rotation about the current text position.

rx (SVGEllipseElement)

Gets or sets the x-axis radius of an ellipse.

rx (SVGRectElement)

Gets or sets the x-axis radius of a rounded corner rectangle.

ry (SVGEllipseElement)

Gets or sets the y-axis radius of an ellipse.

ry (SVGRectElement)

Gets or sets the y-axis radius of a rounded corner rectangle.

screenPixelToMillimeterX

Gets or sets the size of a screen pixel along the x-axis of the viewport.

screenPixelToMillimeterY

Gets or sets the size of a screen pixel along the y-axis of the viewport.

seed

Provides a seed for the random number generator used to create the turbulence.

slope

Indicates the slope of the linear function.

spacing

Gets the spacing attribute on the given textPath element.

specularConstant

Specifies the diffuse refection constant used to calculate the effects of diffusion and reflection from a light source.

specularExponent

Gets a value that indicates an exponent value that controls the focus for the light source.

spreadMethod

Gets a value that determines what happens if a gradient starts or ends inside the bounds of a target rectangle.

startOffset

Gets the startOffset attribute on the given textPath element.

stdDeviationX

Gets a value that indicates the standard deviation in the x-direction, used in calculating a Gaussian blur.

stdDeviationY

Gets a value that indicates the standard deviation in the y-direction, used in calculating a Gaussian blur.

stitchTiles

Provides a way to smooth the tiles generated by the turbulence calculation.

style

Gets a style object.

surfaceScale

Specifies surface height when the alpha channel of the input image is set to 100% opacity.

sweepFlag

Gets or sets the value of the sweep-flag parameter.

systemLanguage

Gets or sets a comma-separated list of language names.

tableValues

Define the lookup table.

target

Specifies where to open a linked document.

targetX

Determines the positioning in X of the convolution matrix relative to a given target pixel in the input image.

targetY

Determines the positioning in Y of the convolution matrix relative to a given target pixel in the input image.

textLength

Gets or sets the textLength attribute on the given element.

title

Gets or returns the advisory title of the SVGStyleElement.

transform

Gets the value of a transform attribute.

type (SVGComponentTransferFunctionElement)

The type of component transfer function. The function type determines the applicability of the other attributes.

type (SVGFEColorMatrixElement)

Indicates the type of matrix operation.

type (SVGFETurbulenceElement)

Indicates whether the filter primitive should perform a noise or turbulence function.

type (SVGScriptElement)

Gets the scripting language for the given script element.

type (SVGStyleElement)

Gets the style sheet language of the style element's contents.

type (SVGTransform)

Gets or sets the transform attribute type.

unitType (SVGAngle)

Gets or sets a value that indicates the type of angle units.

unitType (SVGLength)

Gets or sets a value that indicates the type of length units.

useCurrentView

Gets or sets a value that indicates whether the current innermost SVG document fragment is the standard view (that is, based on attributes of the svg element such as viewBox) or a custom view (that is, a hyperlink into a particular view or other element.

value

Gets or sets the value of the given attribute.

valueAsString

Gets or sets the string form of the value property, in the units that svgUnitTypes specifies.

valueInSpecifiedUnits

Gets or sets the length or angle value, as a floating point number, in the units that svgUnitTypes specifies.

values

Numeric values for the feColorMatrix transformation matrix.

viewBox

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

viewport

Gets or sets the current viewport.

viewportElement

Gets the element that established the current viewport.

viewTarget

Gets the viewTarget attribute of a view element.

width

Defines the width of an element.

x

Gets or sets the x-coordinate value.

x1

Gets or sets the absolute or relative x-coordinate for the first control point.

x1 (SVGLinearGradientElement)

Gets or sets the x-coordinate for the begining of a gradient vector.

x1 (SVGLineElement)

Gets or sets the x-coordinate for the start of a line.

x2

Gets or sets the absolute or relative x-coordinate for the second control point.

x2 (SVGLinearGradientElement)

Gets or sets the x-coordinate for the end of a gradient vector.

x2 (SVGLineElement)

Gets or sets the x-coordinate for the end of a line.

xChannelSelector

Specifies which color channel (R/G/B/A) from image 2 to use for the x displacement property with a FEDisplacementMap element.

xmlbase

Gets or sets the base attribute on the element.

xmllang

Gets or sets a value that specifies the language that is used in the contents and attribute values of an element.

xmlspace

Gets or sets a value that indicates whether white space is preserved in character data.

y

Gets or sets the y-coordinate value.

y1

Gets or sets the absolute or relative y-coordinate for the first control point.

y1 (SVGLinearGradientElement)

Gets or sets the y-coordinate for the begining of a gradient vector.

y1 (SVGLineElement)

Gets or sets the y-coordinate for the start of a line.

y2

Gets or sets the absolute or relative y-coordinate for the second control point.

y2 (SVGLinearGradientElement)

Gets or sets the y-coordinate for the end of a gradient vector.

y2 (SVGLineElement)

Gets or sets the y-coordinate for the end of a line.

yChannelSelector

Specifies which color channel (R/G/B/A) from image 2 to use for the y displacement property with a FEDisplacementMap element.

z

Gets a value that indicates the z location for the light source

zoomAndPan

Gets the zoomAndPan attribute of an element.

 

 

 

Show:
© 2014 Microsoft