XFINIUM.PDF Documentation
GetContentHeight(Double,Boolean) Method



Xfinium.Pdf.FlowDocument Namespace > PdfFlowContent Class > GetContentHeight Method : GetContentHeight(Double,Boolean) Method
The width for which the content height is computed.
If true the content height is recalculated.
Gets the height of the content for the given width and forces width recalculation.
Syntax
'Declaration
 
Public Overloads Function GetContentHeight( _
   ByVal width As Double, _
   ByVal recalculate As Boolean _
) As Double
'Usage
 
Dim instance As PdfFlowContent
Dim width As Double
Dim recalculate As Boolean
Dim value As Double
 
value = instance.GetContentHeight(width, recalculate)
public double GetContentHeight( 
   double width,
   bool recalculate
)
public:
double GetContentHeight( 
   double width,
   bool recalculate
) 

Parameters

width
The width for which the content height is computed.
recalculate
If true the content height is recalculated.

Return Value

The height of the content for the specified width.
When this method is called for the first time, the content height is calculated. Subsequent calls with the same 'width' parameter return the already computed height. If 'recalculate' is true, then the content height is computed even if 'width' has not changed from previous call.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfFlowContent Class
PdfFlowContent Members
Overload List