Version

GetDropDownListAdditionalWidth Method (EmbeddableEditorOwnerBase)

Returns the number of pixels by which to increase the dropdown list's width to compensate for borders, etc.
Syntax
'Declaration
 
Public Overridable Function GetDropDownListAdditionalWidth( _
   ByVal ownerContext As Object _
) As Integer
public virtual int GetDropDownListAdditionalWidth( 
   object ownerContext
)

Parameters

ownerContext
The context that was passed into the GetEmbeddableElement(UIElement,EmbeddableEditorOwnerBase,Object,EmbeddableUIElementBase) method.

Return Value

The additional width to apply to the dropdown
Remarks
If the owner returns a non-zero value from the GetDropDownListOffset method, the dropdown list's width might need to be increased so that it covers the width of the owner; this method allows that.

The owner will typically return the sum of the widths of its left and right borders.The default implementation returns 0
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