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
PdfSizeThe size of the area to check. Usually relates to AvailableSize.
actualSize
PdfSizeWhen 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 withsize
; otherwise,false
.