Method AspectRatio
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
AspectRatio(double, AspectRatioMode)
Applies aspect ratio restrictions to the content.
public LayoutContainer AspectRatio(double ratio, AspectRatioMode option = AspectRatioMode.FitArea)
Parameters
ratio
doubleThe aspect ratio.
option
AspectRatioModeThe scaling mode.
Returns
- LayoutContainer
The nested container with the applied aspect ratio.
Remarks
Read the AspectRatio section of the Size, position, and rendering of containers article for examples of using this method.