Compartilhar via


ShapeElement.GetSubFieldRepresentedElements(ShapeField, ShapeSubField) Method

Definition

Gets a collection of ModelElements that the specified ShapeSubField represents.

public:
 virtual System::Collections::ICollection ^ GetSubFieldRepresentedElements(Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field, Microsoft::VisualStudio::Modeling::Diagrams::ShapeSubField ^ subfield);
public virtual System.Collections.ICollection GetSubFieldRepresentedElements (Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field, Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField subfield);
abstract member GetSubFieldRepresentedElements : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField -> System.Collections.ICollection
override this.GetSubFieldRepresentedElements : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField -> System.Collections.ICollection
Public Overridable Function GetSubFieldRepresentedElements (field As ShapeField, subfield As ShapeSubField) As ICollection

Parameters

field
ShapeField

A child ShapeField of this ShapeElement.

subfield
ShapeSubField

Returns

A collection of ModelElements that the specified child ShapeSubField represents.

Remarks

This is intended to be used by accessibility, selection, and in-place editing. For example, the specified ShapeSubField (as a DiagramItem) may be part of a selection, but the selection is only interested in the ModelElement that the ShapeField represents. Similarly, the specified ShapeSubField (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