Click or drag to resize
CanvasSvgNamedElementSetAspectRatioAttribute Method
[Win10_15063] Sets an aspect ratio attribute, which consists of alignment and scaling.

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void SetAspectRatioAttribute(
	string attributeName,
	CanvasSvgAspectAlignment alignment,
	CanvasSvgAspectScaling meetOrSlice
)

Parameters

attributeName
Type: SystemString
alignment
Type: Microsoft.Graphics.Canvas.SvgCanvasSvgAspectAlignment
meetOrSlice
Type: Microsoft.Graphics.Canvas.SvgCanvasSvgAspectScaling
Remarks

This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.

See Also