This topic has not yet been rated - Rate this topic

ShapeElement.GetFieldRepresentedElement Method

Gets the primary element that the child shape represents.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public virtual ModelElement GetFieldRepresentedElement(
	ShapeField field
)

Parameters

field
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeField
A child field in the element.

Return Value

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

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ