ShapeElement.GetFieldRepresentedElement Method

Gets the primary element that the child shape represents.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'Declaration
Public Overridable Function GetFieldRepresentedElement ( _
    field As ShapeField _
) As ModelElement
'Usage
Dim instance As ShapeElement 
Dim field As ShapeField 
Dim returnValue As ModelElement 

returnValue = instance.GetFieldRepresentedElement(field)
public virtual ModelElement GetFieldRepresentedElement(
    ShapeField field
)
public:
virtual ModelElement^ GetFieldRepresentedElement(
    ShapeField^ field
)
public function GetFieldRepresentedElement(
    field : ShapeField
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
The primary element that the child shape represents.

Remarks

This is intended to be used by accessibility, selection, and in-place editing. For example, the specified ShapeField may be part of a selection (as a DiagramItem), but the selection is only interested in the ModelElement that the ShapeField represents. Similarly, the specified ShapeField (as a DiagramItem) may be queried by an Accessibility client for the accessible name and description, which is automatically handled by the ModelElement.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace