Visual Basic (Declaration) | |
---|---|
Function Measure( _ ByVal context As LayoutContext _ ) As LayoutResult |
C# | |
---|---|
LayoutResult Measure( LayoutContext context ) |
Parameters
- context
- LayoutContext specifying information about layout operations
Return Value
LayoutResult indicating outcome of this operationCurrent implementation of layout subsystem assumes that this method will return actual extents encapsulated into LayoutResult. Nevertheless, it may be sufficient to return only approximate partial size (low end approximation) as long as the layout manager knows that the item (content being measured) will exceed current page dimensions (ITargetDevice for more details) for the current target device and a complete accurate measurement of the item is expensive.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2