Table of Contents

Method TryFit

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

TryFit(PdfSize, out PdfSize)

Checks whether this element fits into an area with the specified size.

public bool TryFit(PdfSize size, out PdfSize actualSize)

Parameters

size PdfSize

The size of the area to check. Usually relates to AvailableSize.

actualSize PdfSize

When this method returns true, contains the actual element size within the area. Otherwise, contains the default value for the PdfSize. This parameter is passed uninitialized.

Returns

bool

true when this element fits into the area with size; otherwise, false.