ElementPropertyDescriptor.GetEditor Method
Returns a value editor for the described property.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣言
Public Overrides Function GetEditor ( _
editorBaseType As Type _
) As Object
public override Object GetEditor(
Type editorBaseType
)
public:
virtual Object^ GetEditor(
Type^ editorBaseType
) override
abstract GetEditor :
editorBaseType:Type -> Object
override GetEditor :
editorBaseType:Type -> Object
public override function GetEditor(
editorBaseType : Type
) : Object
Parameters
- editorBaseType
Type: System.Type
The type for which to return a value editor.
Return Value
Type: System.Object
A value editor for the described property.
Remarks
The value editor that is returned is derived from the UITypeEditor class.
If an EditorAttribute attribute is applied to the type of the described property or the to the metadata for the described property, then the EditorAttribute attribute defines the editor to use for the property. Otherwise, if editorBaseType is an enumeration to which a FlagsAttribute attribute is applied, then this method returns a FlagEnumerationEditor. Otherwise, the default editor for the type of the described property is used.
.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
ElementPropertyDescriptor Class