Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Protected Overridable Function CreatePresentationElementTypeDescriptor ( _
parent As ICustomTypeDescriptor, _
presentationElement As PresentationElement, _
selectedElement As ModelElement _
) As PresentationElementTypeDescriptor
'使用
Dim parent As ICustomTypeDescriptor
Dim presentationElement As PresentationElement
Dim selectedElement As ModelElement
Dim returnValue As PresentationElementTypeDescriptor
returnValue = Me.CreatePresentationElementTypeDescriptor(parent, _
presentationElement, selectedElement)
protected virtual PresentationElementTypeDescriptor CreatePresentationElementTypeDescriptor(
ICustomTypeDescriptor parent,
PresentationElement presentationElement,
ModelElement selectedElement
)
protected:
virtual PresentationElementTypeDescriptor^ CreatePresentationElementTypeDescriptor(
ICustomTypeDescriptor^ parent,
PresentationElement^ presentationElement,
ModelElement^ selectedElement
)
protected function CreatePresentationElementTypeDescriptor(
parent : ICustomTypeDescriptor,
presentationElement : PresentationElement,
selectedElement : ModelElement
) : PresentationElementTypeDescriptor
Parameters
- parent
Type: System.ComponentModel.ICustomTypeDescriptor
- presentationElement
Type: Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
- selectedElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementTypeDescriptor
Permissions
- 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
PresentationElementTypeDescriptionProvider Class