ShapeElement.RelatedShapeToEmphasize Property

Gets the related shape to visually emphasize to the user when this shape is selected.

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


Public Overridable ReadOnly Property RelatedShapeToEmphasize As ShapeElement
public virtual ShapeElement RelatedShapeToEmphasize { get; }
virtual property ShapeElement^ RelatedShapeToEmphasize {
    ShapeElement^ get ();
abstract RelatedShapeToEmphasize : ShapeElement with get 
override RelatedShapeToEmphasize : ShapeElement with get
function get RelatedShapeToEmphasize () : ShapeElement

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The related shape to visually emphasize; otherwise, nulla null reference (Nothing in Visual Basic), if there is no related shape to emphasize.


The emphasis is different from selection and does not indicate that the related shape is selected. The intent is to draw the user's attentionto the related shape to help provide context.

This feature is particularly useful to emphasize the parent of a relative child shape such as a label. For example, when the user selects a label attached to a connector, it might not be clear which connector the label is associated with. You can override this property to return the parent shape.

.NET Framework Security

See Also


ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace