Version

GetTextSizeOfValue(EmbeddableEditorOwnerBase,Object,Boolean,Int32) Method

Returns the size required to render the editor's value for the specified owner and ownerContext.
Syntax
'Declaration
 
Protected Overridable Function GetTextSizeOfValue( _
   ByVal owner As EmbeddableEditorOwnerBase, _
   ByVal ownerContext As Object, _
   ByVal allowMultiline As Boolean, _
   ByVal maxWidth As Integer _
) As Size
protected virtual Size GetTextSizeOfValue( 
   EmbeddableEditorOwnerBase owner,
   object ownerContext,
   bool allowMultiline,
   int maxWidth
)

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.
allowMultiline
Determines whether the value returned from the EmbeddableEditorOwnerBase.IsMultiLine method is honored.
maxWidth
The constraining width

Return Value

The size required to render the editor's value for the specified owner and ownerContext.
Remarks

Note: If the editor is in edit mode for the specified owner and ownerContext, the value of the editor's CurrentEditText property is used rather than the value returned via the EmbeddableEditorOwnerBase.GetValue method.

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