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
sizePdfSizeThe size of the area to check. Usually relates to AvailableSize.
actualSizePdfSizeWhen 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
truewhen this element fits into the area withsize; otherwise,false.