Version

GetAutoSizeEditInfo Method (EmbeddableEditorOwnerBase)

Returns the AutoSizeEdit information to be used by editors that support AutoSizing
Syntax
'Declaration
 
Public Overridable Function GetAutoSizeEditInfo( _
   ByVal ownerContext As Object, _
   ByRef autoSizeEdit As Boolean, _
   ByRef startSize As Size, _
   ByRef maxSize As Size _
) As Boolean
public virtual bool GetAutoSizeEditInfo( 
   object ownerContext,
   out bool autoSizeEdit,
   out Size startSize,
   out Size maxSize
)

Parameters

ownerContext
The context that was passed into the GetEmbeddableElement(UIElement,EmbeddableEditorOwnerBase,Object,EmbeddableUIElementBase) method.
autoSizeEdit
(out) Indicates whether the owner supports AutoSizeEditing.
startSize
(out) A Size struct containing the starting width and height to which the editor should be set.
maxSize
(out) A Size struct containing the maximum width and height to which the editor should be allowed to grow.

Return Value

A boolean indicating whether AutoSizeEdit functionality is supported by the owner.
Remarks
The default implementation returns false.
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