LayoutContainer.AspectRatio Method

Applies aspect ratio restrictions to the content.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public LayoutContainer AspectRatio(
	double ratio,
	AspectRatioMode option = AspectRatioMode.FitArea
)
VB
Public Function AspectRatio ( 
	ratio As Double,
	Optional option As AspectRatioMode = AspectRatioMode.FitArea
) As LayoutContainer

Parameters

ratio
Type: System.Double
The aspect ratio.
option (Optional)
Type: BitMiracle.Docotic.Pdf.Layout.AspectRatioMode
The scaling mode.

Return Value

Type: LayoutContainer
The nested container with the applied aspect ratio.

See Also