NewItemFactory.GetDisplayName Method
Gets a display name for the specified Type that can be added to the collection editor or sub-property editor.
Namespace: Microsoft.Windows.Design.PropertyEditing
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Overridable Function GetDisplayName ( _
type As Type _
) As String
public virtual string GetDisplayName(
Type type
)
public:
virtual String^ GetDisplayName(
Type^ type
)
abstract GetDisplayName :
type:Type -> string
override GetDisplayName :
type:Type -> string
public function GetDisplayName(
type : Type
) : String
Parameters
- type
Type: System.Type
The type for which to get a display name.
Return Value
Type: System.String
The name to display for type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | type is nulla null reference (Nothing in Visual Basic). |
Remarks
This method returns the name that is displayed in the "Add Item" drop-down box to identify the Type being added. The default implementation returns the short name of the Type.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.PropertyEditing Namespace