Version

PositionElements Method (EditorWithTextAndDropDownUIElementBase)

Invoked during the PositionChildElements method to allow derived classes to insert additional elements.
Syntax
'Declaration
 
Protected Overridable Function PositionElements( _
   ByVal workRect As Rectangle, _
   ByVal phase As EditorWithTextAndDropDownUIElementBase.ChildElementPhase, _
   ByVal oldElements As UIElementsCollection _
) As Rectangle
protected virtual Rectangle PositionElements( 
   Rectangle workRect,
   EditorWithTextAndDropDownUIElementBase.ChildElementPhase phase,
   UIElementsCollection oldElements
)

Parameters

workRect
ByRef current working rectangle. This should be modified to exclude the space used by the elements added.
phase
Current phase of elements being added.
oldElements
Previous ChildElements collection or null (Nothing in VB) if there was no previous child elements collection.

Return Value

The System.Drawing.Rectangle of the working area after the elements are positioned.
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