Udostępnij za pośrednictwem


ShapeElement.GetFieldRepresentedElement(ShapeField) Method

Definition

Gets the primary ModelElement that the specified child ShapeField represents.

public:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ GetFieldRepresentedElement(Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field);
public virtual Microsoft.VisualStudio.Modeling.ModelElement GetFieldRepresentedElement (Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field);
abstract member GetFieldRepresentedElement : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField -> Microsoft.VisualStudio.Modeling.ModelElement
override this.GetFieldRepresentedElement : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField -> Microsoft.VisualStudio.Modeling.ModelElement
Public Overridable Function GetFieldRepresentedElement (field As ShapeField) As ModelElement

Parameters

field
ShapeField

A child ShapeField of this ShapeElement.

Returns

The primary ModelElement that the specified child ShapeField 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.

Applies to