Version

MustDisplayFromList Method (EmbeddableEditorOwnerBase)

Returns whether the text an element displays must correspond to the text of an item in a list
Syntax
'Declaration
 
Public Overridable Function MustDisplayFromList( _
   ByVal ownerContext As Object _
) As Boolean
public virtual bool MustDisplayFromList( 
   object ownerContext
)

Parameters

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

Return Value

If true and the editor's Value does not match an item in the list, an empty string will be displayed.
Remarks
The default implementation returns true, meaning that if an editor's Value does not correspond to an item in the list, and MustSelectFromList returns true, an empty string will be displayed.Note:The base class implementation will always return false when MustSelectFromList 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