CalcSize Method (RenderEmpty)
In This Topic
Calculates the size of the current object. When this method is called, the object must already have been added to the document (e.g. to
Body or to
Children of another object in the document). See
remarks for more details.
Syntax
Parameters
- width
- The width of the current object. This parameter may be specified as Unit.Auto or as an absolute value (but it must not reference other objects).
- height
- The height of the current object. This parameter may be specified as Unit.Auto or as an absolute value (but it must not reference other objects).
Return Value
The size of the current object, in
ResolvedUnit units.
Example
The following C# code may be used to test whether a
RenderText will fit on the current page if inserted at the current block flow position (see
C1PrintDocument.AvailableBlockFlowHeight):
See Also