Version

GetSize(EmbeddableEditorOwnerBase,Object,Boolean,Boolean,Boolean,Int32) Method

Is called to get the size needed to render a value.
Syntax
'Declaration
 
Public Overloads Function GetSize( _
   ByVal owner As EmbeddableEditorOwnerBase, _
   ByVal ownerContext As Object, _
   ByVal valueOnly As Boolean, _
   ByVal full As Boolean, _
   ByVal borders As Boolean, _
   ByVal maxTextWidth As Integer _
) As Size
public Size GetSize( 
   EmbeddableEditorOwnerBase owner,
   object ownerContext,
   bool valueOnly,
   bool full,
   bool borders,
   int maxTextWidth
)

Parameters

owner
An object that derives from the EmbeddableEditorOwnerBase class.
ownerContext
An object that is used to get the value to render via a call to the EmbeddableEditorOwnerBase.GetValue method.
valueOnly
If false will include space needed for associated elements (e.g. editing elements like spin buttons).
full
If true will return the size required to completely render the value otherwise the size returned should be the preferred size.
borders
If true will include the borders
maxTextWidth
Maximum width of the string.

Return Value

Returns the size needed to render a value and optionally its associated elements.
Remarks
The default implementation ignores the width parameter, and calls the overload that doesn't take width
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also